com.ibm.as400.util.html

Class FormInput

    • Constructor Detail

      • FormInput

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

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

        public FormInput(String name,
                 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

      • getDirection

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

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

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

        public 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.
      • setDirection

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

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

        public void setSize(int size)
                     throws 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:
        PropertyVetoException - If a change is vetoed.
      • toString

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