|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.util.html.HTMLTagAttributes
com.ibm.as400.util.html.HTMLList
com.ibm.as400.util.html.OrderedList
public class OrderedList
The OrderedList class represents an HTML ordered list, <ol>.
This example creates a OrderedList tag:
// Create an OrderedList. OrderedList list = new OrderedList();// Use large roman numerals when displaying the list items. list.setType(HTMLConstants.LARGE_ROMAN);
// Create an OrderedListItem. OrderedListItem listItem = new OrderedListItem();
// Set the data in the list item. listItem.setItemData(new HTMLText("my list item"));
// Add the list item to the OrderedList. list.addListItem(listItem); System.out.println(list.toString());
Here is the output of the OrderedList tag:
<ol type="I"> <li>my list item</li> </ol>
Here is the output of the OrderedList tag using XSL Formatting Objects:
<fo:block-container> <fo:list-block> <fo:list-item> <fo:list-item-label>I.</fo:list-item-label> <fo:list-item-body><fo:block-container><fo:block>my list item</fo:block> </fo:block-container> </fo:list-item-body> </fo:list-item> </fo:list-block> </fo:block-container>
OrderedList objects generate the following events:
Constructor Summary | |
---|---|
OrderedList()
Constructs a default OrderedList object. |
|
OrderedList(String type)
Constructs a OrderedList object with the specified order labeling type. |
Method Summary | |
---|---|
String |
getFOTag()
Returns the XSL-FO tag for the ordered list. |
int |
getStartingSequenceNumber()
Returns the starting number in the order labeling. |
String |
getTag()
Returns the tag for the ordered list. |
String |
getType()
Returns the type of the order labeling. |
void |
setStartingSequenceNumber(int start)
Sets the starting number to something other than "1" to use in incrementing the list structure. |
void |
setType(String type)
Sets the order labeling to be used. |
Methods inherited from class com.ibm.as400.util.html.HTMLList |
---|
addList, addListItem, addListItemElementListener, getDirection, getItemCount, getItems, getLanguage, isCompact, isUseFO, removeList, removeListItem, removeListItemElementListener, setCompact, setDirection, setItems, setLanguage, setUseFO, toString |
Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes |
---|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OrderedList()
public OrderedList(String type)
type
- The order labeling used to display the ordered list. One of the following
constants defined in HTMLConstants: NUMBERS, CAPITALS, LOWER_CASE, LARGE_ROMAN, or SMALL_ROMAN.Method Detail |
---|
public int getStartingSequenceNumber()
public String getTag()
public String getFOTag()
public String getType()
public void setType(String type)
type
- The order labeling scheme. One of the following constants
defined in HTMLConstants: NUMBERS, CAPITALS, LOWER_CASE, LARGE_ROMAN, or SMALL_ROMAN.HTMLConstants
public void setStartingSequenceNumber(int start)
start
- The ordered list starting number.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |