|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.util.html.HTMLTagAttributes | +--com.ibm.as400.util.html.HTMLListItem | +--com.ibm.as400.util.html.OrderedListItem
The OrderedListItem class represents an item in an ordered list item.
This example creates a OrderedListItem tag:
// Create an OrderedList. OrderedList list = new OrderedList(HTMLConstants.CAPITALS);// 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 OrderedListItem tag:
<ol type="capitals"> <li>my list item</li> </ol>
OrderedListItem objects generate the following events:
Constructor Summary | |
OrderedListItem()
Constructs a default OrderedListItem object. |
|
OrderedListItem(HTMLTagElement data)
Constructs a OrderedListItem object with the specified list item data. |
Method Summary | |
java.lang.String |
getType()
Returns the type of the order labeling. |
int |
getValue()
Returns the number for the current list item |
void |
setType(java.lang.String type)
Sets the order labeling to be used. |
void |
setValue(int value)
Sets a number other than the incremented value for the current List Item (LI) in an Ordered List (OL.) It is thus possible to create a non-sequential list. |
Methods inherited from class com.ibm.as400.util.html.HTMLListItem |
getDirection, getItemData, getLanguage, getTag, setDirection, setItemData, setLanguage, 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 OrderedListItem()
public OrderedListItem(HTMLTagElement data)
data
- The data to use in the ordered list item.Method Detail |
public java.lang.String getType()
public int getValue()
public void setType(java.lang.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 setValue(int value)
start
- The ordered list item value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |