|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.util.html.HTMLTagAttributes
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 and Description |
|---|
TextFormInput()
Constructs a default TextFormInput object. |
TextFormInput(String name)
Constructs a TextFormInput object with the specified control name. |
TextFormInput(String name,
String value)
Constructs a TextFormInput object with the specified control name and initial input value. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFOTag()
Returns a comment tag. |
int |
getMaxLength()
Returns the maximum number of characters permitted in the text field. |
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. |
| Methods inherited from class com.ibm.as400.util.html.FormInput |
|---|
addVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toString |
| Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes |
|---|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextFormInput()
public TextFormInput(String name)
name - The control name of the input field.
public TextFormInput(String name,
String value)
name - The control name of the input field.value - The initial value of the input field.| Method Detail |
|---|
public int getMaxLength()
public String getFOTag()
public String getTag()
public void setMaxLength(int length)
throws PropertyVetoException
length - The maximum length.PropertyVetoException - If a change is vetoed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||