All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.util.html.TextFormInput

java.lang.Object
   |
   +----com.ibm.as400.util.html.FormInput
           |
           +----com.ibm.as400.util.html.TextFormInput

public class TextFormInput
extends FormInput
The TextFormInput class represents a single line text input type in an HTML form. The trailing slash "/" on the TextFormInput tag allows it to conform to the XHTML specification.

Here is an example of a TextFormInput tag:
<input type="text" name="userID" size="40" />

TextFormInput objects generate the following events:


Constructor Index

 o TextFormInput()
Constructs a default TextFormInput object.
 o TextFormInput(String)
Constructs a TextFormInput object with the specified control name.
 o TextFormInput(String, String)
Constructs a TextFormInput object with the specified control name and initial input value.

Method Index

 o getMaxLength()
Returns the maximum number of characters permitted in the text field.
 o getTag()
Returns the tag for the text form input type.
 o setMaxLength(int)
Sets the maximum number of characters permitted in the text field.

Constructors

 o TextFormInput
 public TextFormInput()
Constructs a default TextFormInput object. There is no initial limit on the maximum number of characters permitted in the text field.

 o TextFormInput
 public TextFormInput(String name)
Constructs a TextFormInput object with the specified control name. There is no initial limit on the maximum number of characters permitted in the text field.

Parameters:
name - The control name of the input field.
 o TextFormInput
 public TextFormInput(String name,
                      String value)
Constructs a TextFormInput object with the specified control name and initial input value. There is no initial limit on the maximum number of characters permitted in the text field.

Parameters:
name - The control name of the input field.
value - The initial value of the input field.

Methods

 o getMaxLength
 public int getMaxLength()
Returns the maximum number of characters permitted in the text field. A value of -1 indicates that there is no limit.

Returns:
The maximum length.
 o getTag
 public String getTag()
Returns the tag for the text form input type.

Returns:
The tag.
Overrides:
getTag in class FormInput
 o setMaxLength
 public void setMaxLength(int length) throws PropertyVetoException
Sets the maximum number of characters permitted in the text field.

Parameters:
length - The maximum length.
Throws: PropertyVetoException
If a change is vetoed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index