|
|||||||||||
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
The FormInput class represents an input element in an HTML form.
FormInput objects generate the following events:
Constructor Summary | |
---|---|
FormInput()
Constructs a default FormInput object. |
|
FormInput(String name)
Constructs a FormInput object with the specified control name. |
|
FormInput(String name,
String value)
Constructs a FormInput object with the specified controal name and the initial input value. |
Method Summary | |
---|---|
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds the VetoableChangeListener. |
String |
getDirection()
Returns the direction of the text interpretation. |
String |
getLanguage()
Returns the language of the input element. |
String |
getName()
Returns the control name of the input field. |
int |
getSize()
Returns the size of the input field. |
String |
getValue()
Returns the initial value of the input field. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes the VetoableChangeListener from the internal list. |
void |
setDirection(String dir)
Sets the direction of the text interpretation. |
void |
setLanguage(String lang)
Sets the language of the input tag. |
void |
setName(String name)
Sets the control name of the input field. |
void |
setSize(int size)
Sets the size of the input field. |
void |
setValue(String value)
Sets the initial value of the input field. |
String |
toString()
Returns a String representation for the form input tag. |
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 |
Methods inherited from interface com.ibm.as400.util.html.HTMLTagElement |
---|
getFOTag, getTag |
Constructor Detail |
public FormInput()
public FormInput(String name)
name
- The control name of the input field.public FormInput(String name, String value)
name
- The control name of the input field.value
- The initial value of the input field.Method Detail |
public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public String getDirection()
public String getLanguage()
public String getName()
public String getValue()
public int getSize()
public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setDirection(String dir) throws PropertyVetoException
dir
- The direction. One of the following constants
defined in HTMLConstants: LTR or RTL.
PropertyVetoException
- If a change is vetoed.HTMLConstants
public void setLanguage(String lang) throws PropertyVetoException
lang
- The language. Example language tags include:
en and en-US.
PropertyVetoException
- If a change is vetoed.public void setName(String name) throws PropertyVetoException
name
- The control name of the input field.
PropertyVetoException
- If a change is vetoed.public void setSize(int size) throws PropertyVetoException
size
- The field size.
PropertyVetoException
- If a change is vetoed.public void setValue(String value) throws PropertyVetoException
value
- The initial input value.
PropertyVetoException
- If a change is vetoed.public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |