All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.util.html.TextAreaFormElement
java.lang.Object
|
+----com.ibm.as400.util.html.TextAreaFormElement
- public class TextAreaFormElement
- extends Object
- implements HTMLTagElement, Serializable
The TextAreaFormElement class represents a text area element, which can be used
in an HTML form.
Here is an example of a TextAreaFormElement tag:
<form>
<textarea name="foo" rows="3" cols="40">
Default TEXTAREA value goes here
</textarea>
</form>
TextAreaFormElement objects generate the following events:
- PropertyChangeEvent
- VetoableChangeEvent
-
TextAreaFormElement()
- Constructs a default TextAreaFormElement object.
-
TextAreaFormElement(String)
- Constructs a TextAreaFormElement object with the specified control name.
-
TextAreaFormElement(String, int, int)
- Constructs a TextAreaFormElement object with the specified control name,
number of rows, and columns.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds the VetoableChangeListener.
-
getColumns()
-
Returns the number of visible columns in the text area.
-
getName()
- Returns the control name of the text area.
-
getRows()
- Returns the number of visible rows in the text area.
-
getTag()
- Returns the text area tag.
-
getText()
- Returns the initial text of the text area.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes the PropertyChangeListener from the internal list.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes the VetoableChangeListener from the internal list.
-
setColumns(int)
- Sets the number of visible columns in the text area.
-
setName(String)
- Sets the control name of the text area.
-
setRows(int)
- Sets the number of visible rows in the text area.
-
setText(String)
- Sets the initial text of the text area.
-
toString()
- Returns a String representation of the text area tag.
TextAreaFormElement
public TextAreaFormElement()
- Constructs a default TextAreaFormElement object.
TextAreaFormElement
public TextAreaFormElement(String name)
- Constructs a TextAreaFormElement object with the specified control name.
- Parameters:
- The - control name of the text area.
TextAreaFormElement
public TextAreaFormElement(String name,
int rows,
int cols)
- Constructs a TextAreaFormElement object with the specified control name,
number of rows, and columns.
- Parameters:
- name - The control name of the text area.
- rows - The number of rows.
- cols - The number of columns.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a PropertyChangeListener. The specified PropertyChangeListener's
propertyChange method will be called each time the value of any
bound property is changed.
- Parameters:
- listener - The PropertyChangeListener.
- See Also:
- removePropertyChangeListener
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener)
- Adds the VetoableChangeListener. The specified VetoableChangeListener's
vetoableChange method will be called each time the value of any
constrained property is changed.
- Parameters:
- listener - The VetoableChangeListener.
- See Also:
- removeVetoableChangeListener
getColumns
public int getColumns()
- Returns the number of visible columns in the text area.
- Returns:
- The number of columns.
getName
public String getName()
- Returns the control name of the text area.
- Returns:
- The control name.
getRows
public int getRows()
- Returns the number of visible rows in the text area.
- Returns:
- The number of rows.
getTag
public String getTag()
- Returns the text area tag.
- Returns:
- The tag.
getText
public String getText()
- Returns the initial text of the text area.
- Returns:
- The initial text.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Removes the PropertyChangeListener from the internal list.
If the PropertyChangeListener is not on the list, nothing is done.
- Parameters:
- listener - The PropertyChangeListener.
- See Also:
- addPropertyChangeListener
removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)
- Removes the VetoableChangeListener from the internal list.
If the VetoableChangeListener is not on the list, nothing is done.
- Parameters:
- listener - The VetoableChangeListener.
- See Also:
- addVetoableChangeListener
setColumns
public void setColumns(int cols) throws PropertyVetoException
- Sets the number of visible columns in the text area.
- Parameters:
- cols - The number of columns.
- Throws: PropertyVetoException
- If a change is vetoed.
setName
public void setName(String name) throws PropertyVetoException
- Sets the control name of the text area.
- Parameters:
- name - The control name.
- Throws: PropertyVetoException
- If a change is vetoed.
setRows
public void setRows(int rows) throws PropertyVetoException
- Sets the number of visible rows in the text area.
- Parameters:
- rows - The number of rows.
- Throws: PropertyVetoException
- If a change is vetoed.
setText
public void setText(String text) throws PropertyVetoException
- Sets the initial text of the text area.
- Parameters:
- text - The initial text.
- Throws: PropertyVetoException
- If a change is vetoed.
toString
public String toString()
- Returns a String representation of the text area tag.
- Returns:
- The tag.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index