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