private static void createList(Section subCatPart) { List list = new List(true, false, 10); list.add(new ListItem("First point")); list.add(new ListItem("Second point")); list.add(new ListItem("Third point")); subCatPart.add(list); }
@Override public void buildComponent(SerialisationContext pSerialisationContext, PDFSerialiser pSerialiser, EvaluatedHtmlPresentationNode pEvalNode) { List lList = pSerialiser.getElementFactory().getList(); lList.setNumbered(mIsNumbered); pSerialiser.startContainer(ElementContainerFactory.getContainer(lList)); processChildren(pSerialisationContext, pSerialiser, pEvalNode); pSerialiser.endContainer(); pSerialiser.add(lList); }
/** * Create a list with the factory element attributes applied * @return A list with the element attributes applied */ public List getList() { List lList = new List(); return lList; }