com.ibm.as400.util.html

Class LabelFormElement

  • java.lang.Object
    • com.ibm.as400.util.html.LabelFormElement
  • All Implemented Interfaces:
    HTMLTagElement, java.io.Serializable


    public class LabelFormElement
    extends java.lang.Object
    implements HTMLTagElement, java.io.Serializable
    The LabelFormElement class represents a label HTML form element type.

    LabelFormElement objects generate the following events:

    • PropertyChangeEvent
    • VetoableChangeEvent
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      LabelFormElement()
      Constructs a default LabelFormElement object.
      LabelFormElement(java.lang.String label)
      Constructs a LabelFormElement object with the specified viewable text label.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
      Adds a PropertyChangeListener.
      void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
      Adds the VetoableChangeListener.
      java.lang.String getFOTag()
      Returns a comment tag.
      java.lang.String getLabel()
      Returns the viewable text label.
      java.lang.String getTag()
      Returns the label tag.
      void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
      Removes the PropertyChangeListener from the internal list.
      void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
      Removes the VetoableChangeListener from the internal list.
      void setLabel(java.lang.String label)
      Sets the viewable text label.
      java.lang.String toString()
      Returns the String representation of the label tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LabelFormElement

        public LabelFormElement()
        Constructs a default LabelFormElement object.
      • LabelFormElement

        public LabelFormElement(java.lang.String label)
        Constructs a LabelFormElement object with the specified viewable text label.
        Parameters:
        label - The viewable text label.
    >
    • Method Detail

      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
        Adds a PropertyChangeListener. The specified PropertyChangeListener's propertyChange method will be called each time the value of any bound property is changed.
        Parameters:
        listener - The PropertyChangeListener.
        See Also:
        removePropertyChangeListener(java.beans.PropertyChangeListener)
      • addVetoableChangeListener

        public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
        Adds the VetoableChangeListener. The specified VetoableChangeListener's vetoableChange method will be called each time the value of any constrained property is changed.
        Parameters:
        listener - The VetoableChangeListener.
        See Also:
        removeVetoableChangeListener(java.beans.VetoableChangeListener)
      • getLabel

        public java.lang.String getLabel()
        Returns the viewable text label.
        Returns:
        The text label.
      • getFOTag

        public java.lang.String getFOTag()
        Returns a comment tag. This method should not be called. There is no XSL-FO support for this class.
        Specified by:
        getFOTag in interface HTMLTagElement
        Returns:
        The comment tag.
      • getTag

        public java.lang.String getTag()
        Returns the label tag.
        Specified by:
        getTag in interface HTMLTagElement
        Returns:
        The tag.
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
        Removes the PropertyChangeListener from the internal list. If the PropertyChangeListener is not on the list, nothing is done.
        Parameters:
        listener - The PropertyChangeListener.
        See Also:
        addPropertyChangeListener(java.beans.PropertyChangeListener)
      • removeVetoableChangeListener

        public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
        Removes the VetoableChangeListener from the internal list. If the VetoableChangeListener is not on the list, nothing is done.
        Parameters:
        listener - The VetoableChangeListener.
        See Also:
        addVetoableChangeListener(java.beans.VetoableChangeListener)
      • setLabel

        public void setLabel(java.lang.String label)
                      throws java.beans.PropertyVetoException
        Sets the viewable text label.
        Parameters:
        label - The viewable text label.
        Throws:
        java.beans.PropertyVetoException - If a change is vetoed.
      • toString

        public java.lang.String toString()
        Returns the String representation of the label tag.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The tag.