Example usage for com.lowagie.text List List

List of usage examples for com.lowagie.text List List

Introduction

In this page you can find the example usage for com.lowagie.text List List.

Prototype

public List(boolean numbered) 

Source Link

Document

Constructs a List.

Usage

From source file:com.bibisco.export.ITextExporter.java

License:GNU General Public License

@Override
public void startUnorderedList() {
    mList = new List(List.UNORDERED);
    mList.setIndentationLeft(LIST_INDENTATION_LEFT);
    mList.setAlignindent(true);/*from  w w  w.j  a  va  2s  .c  o m*/
    mList.setAutoindent(true);
    mList.setListSymbol("*");
}

From source file:com.bibisco.export.ITextExporter.java

License:GNU General Public License

@Override
public void startOrderedList() {
    mList = new List(List.ORDERED);
    mList.setIndentationLeft(LIST_INDENTATION_LEFT);
    mList.setAlignindent(true);/*  w ww  . java  2 s .  co m*/
    mList.setAutoindent(true);
}

From source file:org.activityinfo.server.report.renderer.itext.ItextMapRenderer.java

License:Open Source License

private void addIndicatorList(MapReportElement element, MapLayer layer, Cell descriptionCell) {
    com.lowagie.text.List list = new List(List.UNORDERED);

    for (int indicatorId : layer.getIndicatorIds()) {
        IndicatorDTO indicator = element.getContent().getIndicatorById(indicatorId);
        list.add(new ListItem(indicator.getName()));
    }/*www.  jav  a  2 s. c  o  m*/

    descriptionCell.add(list);
}

From source file:org.drools.verifier.doc.DroolsDocsComponentFactory.java

License:Apache License

public static List createContents(java.util.List<DrlRuleParser> rules) {
    List index = new List(true);

    for (DrlRuleParser drlRuleData : rules) {
        Chunk chunk = new Chunk(drlRuleData.getName());
        // chunk.setLocalGoto( item.getName() );
        ListItem listItem = new ListItem(chunk);
        index.add(listItem);/*from   ww w. j  a v  a  2 s.  co m*/
    }

    return index;
}

From source file:questions.objects.NestedList.java

public static void main(String[] args) {
    Document document = new Document();
    try {//from w w  w  . jav  a2s  . co m
        PdfWriter.getInstance(document, new FileOutputStream(RESULT));
        document.open();
        List list;
        ListItem listItem;
        List sublist;
        list = new List(true);
        list.setPreSymbol("Chapter ");
        list.setPostSymbol(": ");
        listItem = new ListItem("Isaac Asimov");
        list.add(listItem);
        sublist = new List(true);
        sublist.setIndentationLeft(10);
        sublist.setPreSymbol("1.");
        sublist.add("The Foundation Trilogy");
        sublist.add("The Complete Robot");
        sublist.add("Caves of Steel");
        sublist.add("The Naked Sun");
        list.add(sublist);
        listItem = new ListItem("John Irving");
        list.add(listItem);
        sublist = new List(true);
        sublist.setIndentationLeft(10);
        sublist.setPreSymbol("Section 2.");
        sublist.add("The World according to Garp");
        sublist.add("Hotel New Hampshire");
        sublist.add("A prayer for Owen Meany");
        sublist.add("Widow for a year");
        list.add(sublist);
        listItem = new ListItem("Kurt Vonnegut");
        list.add(listItem);
        sublist = new List(true);
        sublist.setIndentationLeft(10);
        sublist.setPreSymbol("3.");
        sublist.setPostSymbol("# ");
        sublist.add("Slaughterhouse 5");
        sublist.add("Welcome to the Monkey House");
        sublist.add("The great pianola");
        sublist.add("Galapagos");
        list.add(sublist);
        document.add(list);
    } catch (DocumentException de) {
        System.err.println(de.getMessage());
    } catch (IOException ioe) {
        System.err.println(ioe.getMessage());
    }
    document.close();
}