com.ibm.as400.util.html
Class HTMLListItem

java.lang.Object
  extended by com.ibm.as400.util.html.HTMLTagAttributes
      extended by com.ibm.as400.util.html.HTMLListItem
All Implemented Interfaces:
HTMLTagElement, Serializable
Direct Known Subclasses:
OrderedListItem, UnorderedListItem

public abstract class HTMLListItem
extends HTMLTagAttributes
implements Serializable

The HTMLListItem class represents items within a HTMLList. The items within the list can either be ordered or unordered.

HTMLListItem objects generate the following events:

See Also:
Serialized Form

Constructor Summary
HTMLListItem()
           
 
Method Summary
 String getDirection()
          Returns the direction of the text interpretation.
 String getFOTag()
          Returns the tag for the XSL-FO list item.
 HTMLTagElement getItemData()
          Returns the data in the HTMLListItem.
 String getLanguage()
          Returns the language of the input element.
 String getTag()
          Returns the tag for the HTML list item.
 boolean isUseFO()
          Returns if Formatting Object tags are outputted.
 void setDirection(String dir)
          Sets the direction of the text interpretation.
 void setItemData(HTMLTagElement data)
          Sets the item data in the HTMLListItem.
 void setLanguage(String lang)
          Sets the language of the input tag.
 void setUseFO(boolean useFO)
          Sets if Formatting Object tags should be used.
 String toString()
          Returns a String representation for the HTMLList tag.
 
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

HTMLListItem

public HTMLListItem()
Method Detail

getDirection

public String getDirection()
Returns the direction of the text interpretation.

Returns:
The direction of the text.

getItemData

public HTMLTagElement getItemData()
Returns the data in the HTMLListItem.

Returns:
The item data.

getLanguage

public String getLanguage()
Returns the language of the input element.

Returns:
The language of the input element.

getTag

public String getTag()
Returns the tag for the HTML list item.

Specified by:
getTag in interface HTMLTagElement
Returns:
The tag.

getFOTag

public String getFOTag()
Returns the tag for the XSL-FO list item. The language attribute is not supported in XSL-FO.

Specified by:
getFOTag in interface HTMLTagElement
Returns:
The tag.

isUseFO

public boolean isUseFO()
Returns if Formatting Object tags are outputted. The default value is false.

Returns:
true if the output generated is an XSL formatting object, false if the output generated is HTML.

setDirection

public void setDirection(String dir)
Sets the direction of the text interpretation.

Parameters:
dir - The direction. One of the following constants defined in HTMLConstants: LTR or RTL.
See Also:
HTMLConstants

setItemData

public void setItemData(HTMLTagElement data)
Sets the item data in the HTMLListItem.

Parameters:
data - The item data.

setLanguage

public void setLanguage(String lang)
Sets the language of the input tag.

Parameters:
lang - The language. Example language tags include: en and en-US.

setUseFO

public void setUseFO(boolean useFO)
Sets if Formatting Object tags should be used. The default value is false.

Parameters:
useFO - - true if output generated is an XSL formatting object, false if the output generated is HTML.

toString

public String toString()
Returns a String representation for the HTMLList tag.

Overrides:
toString in class Object
Returns:
The tag.