|
|||||||||
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.UnorderedListItem
The UnorderedListItem class represents an item in an unordered list item.
This example creates a UnorderedListItem tag:
// Create an UnorderedList. UnorderedList list = new UnorderedList(HTMLConstants.SQUARE);// Create an UnorderedListItem. UnorderedListItem listItem = new UnorderedListItem();
// Set the data in the list item. listItem.setItemData(new HTMLText("my list item"));
// Add the list item to the UnorderedList. list.addListItem(listItem); System.out.println(list.toString());
Here is the output of the UnorderedListItem tag:
<ul type="square"> <li>my list item</li> </ul>
UnorderedListItem objects generate the following events:
Constructor Summary | |
UnorderedListItem()
Constructs a default UnorderedList object. |
|
UnorderedListItem(HTMLTagElement data)
Constructs a UnorderedListItem object with the specified data. |
Method Summary | |
java.lang.String |
getType()
Returns the type of the labeling scheme. |
void |
setType(java.lang.String type)
Sets the labeling scheme to be used. |
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 UnorderedListItem()
public UnorderedListItem(HTMLTagElement data)
data
- The data to use in the unordered list item.Method Detail |
public java.lang.String getType()
public void setType(java.lang.String type)
type
- The labeling scheme. One of the following constants
defined in HTMLConstants: DISC, SQUARE, or CIRCLE.HTMLConstants
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |