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