|
|||||||||
| 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.HTMLList
|
+--com.ibm.as400.util.html.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>
OrderedList objects generate the following events:
| Constructor Summary | |
OrderedList()
Constructs a default OrderedList object. |
|
OrderedList(java.lang.String type)
Constructs a OrderedList object with the specified order labeling type. |
|
| Method Summary | |
int |
getStartingSequenceNumber()
Returns the starting number in the order labeling. |
java.lang.String |
getTag()
Returns the tag for the ordered list. |
java.lang.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(java.lang.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, removeList, removeListItem, removeListItemElementListener, setCompact, setDirection, setItems, 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 OrderedList()
public OrderedList(java.lang.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 java.lang.String getTag()
public java.lang.String getType()
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.HTMLConstantspublic void setStartingSequenceNumber(int start)
start - The ordered list starting number.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||