public class TextFormInput extends FormInput
Here is an example of a TextFormInput tag:
<input type="text" name="userID" size="40" />
TextFormInput objects generate the following events:
| Constructor and Description |
|---|
TextFormInput()
Constructs a default TextFormInput object.
|
TextFormInput(java.lang.String name)
Constructs a TextFormInput object with the specified control name.
|
TextFormInput(java.lang.String name,
java.lang.String value)
Constructs a TextFormInput object with the specified control name and
initial input value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFOTag()
Returns a comment tag.
|
int |
getMaxLength()
Returns the maximum number of characters permitted in the text field.
|
java.lang.String |
getTag()
Returns the tag for the text form input type.
|
void |
setMaxLength(int length)
Sets the maximum number of characters permitted in the text field.
|
addVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toStringaddPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributespublic TextFormInput()
public TextFormInput(java.lang.String name)
name - The control name of the input field.public TextFormInput(java.lang.String name,
java.lang.String value)
name - The control name of the input field.value - The initial value of the input field.public int getMaxLength()
public java.lang.String getFOTag()
public java.lang.String getTag()
public void setMaxLength(int length)
throws java.beans.PropertyVetoException
length - The maximum length.java.beans.PropertyVetoException - If a change is vetoed.