Bruno/Paulo,
The List class creates numbered lists using a single digit. There's the ability
to append a prefix and a suffix to the value.
So,
List list = new List(true, 20);
list.add(new ListItem("First line"));
list.add(new ListItem("The second"));
list.add(new ListItem("Third line"));
generates
1. First line
2. The second
3. Third line
and if you nest lists inside lists, you can create
1. First line
1. Sub item 1
2. Sub item 2
2. The second
3. Third line
Using the prefix and suffix you can modify the list item number.
However, is it possible to perform numbering such as without setting the
prefix/suffix manually?
1.0 Chapter 1
1.1 Chapter 1 sub 1
1.2 Chapter 2 sub 2
2.0 Chapter 2
2.1 Chapter 2 sub 1
2.2 Chapter 2 sub 2
Thanks
Howard
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar