com.ibm.as400.util.html

Class HTMLListItem

  • All Implemented Interfaces:
    HTMLTagElement, java.io.Serializable
    Direct Known Subclasses:
    OrderedListItem, UnorderedListItem


    public abstract class HTMLListItem
    extends HTMLTagAttributes
    implements java.io.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:

    • PropertyChangeEvent
    See Also:
    Serialized Form
    • Constructor Detail

      • HTMLListItem

        public HTMLListItem()
    • Method Detail

      • getDirection

        public java.lang.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 java.lang.String getLanguage()
        Returns the language of the input element.
        Returns:
        The language of the input element.
      • getTag

        public java.lang.String getTag()
        Returns the tag for the HTML list item.
        Specified by:
        getTag in interface HTMLTagElement
        Returns:
        The tag.
      • getFOTag

        public java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
        Returns a String representation for the HTMLList tag.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The tag.