com.ibm.as400.util.html

Class FormInput

    • Constructor Summary

      Constructors 
      Constructor and Description
      FormInput()
      Constructs a default FormInput object.
      FormInput(java.lang.String name)
      Constructs a FormInput object with the specified control name.
      FormInput(java.lang.String name, java.lang.String value)
      Constructs a FormInput object with the specified controal name and the initial input value.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
      Adds the VetoableChangeListener.
      java.lang.String getDirection()
      Returns the direction of the text interpretation.
      java.lang.String getLanguage()
      Returns the language of the input element.
      java.lang.String getName()
      Returns the control name of the input field.
      int getSize()
      Returns the size of the input field.
      java.lang.String getValue()
      Returns the initial value of the input field.
      void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
      Removes the VetoableChangeListener from the internal list.
      void setDirection(java.lang.String dir)
      Sets the direction of the text interpretation.
      void setLanguage(java.lang.String lang)
      Sets the language of the input tag.
      void setName(java.lang.String name)
      Sets the control name of the input field.
      void setSize(int size)
      Sets the size of the input field.
      void setValue(java.lang.String value)
      Sets the initial value of the input field.
      java.lang.String toString()
      Returns a String representation for the form input tag.
      • Methods inherited from class java.lang.Object

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

      • FormInput

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

        public FormInput(java.lang.String name)
        Constructs a FormInput object with the specified control name.
        Parameters:
        name - The control name of the input field.
      • FormInput

        public FormInput(java.lang.String name,
                 java.lang.String value)
        Constructs a FormInput object with the specified controal name and the initial input value.
        Parameters:
        name - The control name of the input field.
        value - The initial value of the input field.
    • Method Detail

      • 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)
      • getDirection

        public java.lang.String getDirection()
        Returns the direction of the text interpretation.
        Returns:
        The direction of the text.
      • getLanguage

        public java.lang.String getLanguage()
        Returns the language of the input element.
        Returns:
        The language of the input element.
      • getName

        public java.lang.String getName()
        Returns the control name of the input field.
        Returns:
        The control name of the input field.
      • getValue

        public java.lang.String getValue()
        Returns the initial value of the input field.
        Returns:
        The initial value.
      • getSize

        public int getSize()
        Returns the size of the input field. The size refers to the width of the input field in pixels or characters.
        Returns:
        The field size.
      • 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)
      • setDirection

        public void setDirection(java.lang.String dir)
                          throws java.beans.PropertyVetoException
        Sets the direction of the text interpretation.
        Parameters:
        dir - The direction. One of the following constants defined in HTMLConstants: LTR or RTL.
        Throws:
        java.beans.PropertyVetoException - If a change is vetoed.
        See Also:
        HTMLConstants
      • setLanguage

        public void setLanguage(java.lang.String lang)
                         throws java.beans.PropertyVetoException
        Sets the language of the input tag.
        Parameters:
        lang - The language. Example language tags include: en and en-US.
        Throws:
        java.beans.PropertyVetoException - If a change is vetoed.
      • setName

        public void setName(java.lang.String name)
                     throws java.beans.PropertyVetoException
        Sets the control name of the input field.
        Parameters:
        name - The control name of the input field.
        Throws:
        java.beans.PropertyVetoException - If a change is vetoed.
      • setSize

        public void setSize(int size)
                     throws java.beans.PropertyVetoException
        Sets the size of the input field. The size refers to the width of the input field in pixels or characters according to its type.
        Parameters:
        size - The field size.
        Throws:
        java.beans.PropertyVetoException - If a change is vetoed.
      • setValue

        public void setValue(java.lang.String value)
                      throws java.beans.PropertyVetoException
        Sets the initial value of the input field.
        Parameters:
        value - The initial input value.
        Throws:
        java.beans.PropertyVetoException - If a change is vetoed.
      • toString

        public java.lang.String toString()
        Returns a String representation for the form input tag.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The tag.