public abstract class FormInput extends HTMLTagAttributes implements Serializable
FormInput objects generate the following events:
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFOTag, getTag
public FormInput()
public FormInput(String name)
name
- The control name of the input field.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.