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:


Constructor Index

 o TextAreaFormElement()
Constructs a default TextAreaFormElement object.
 o TextAreaFormElement(String)
Constructs a TextAreaFormElement object with the specified control name.
 o TextAreaFormElement(String, int, int)
Constructs a TextAreaFormElement object with the specified control name, number of rows, and columns.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a PropertyChangeListener.
 o addVetoableChangeListener(VetoableChangeListener)
Adds the VetoableChangeListener.
 o getColumns()
Returns the number of visible columns in the text area.
 o getName()
Returns the control name of the text area.
 o getRows()
Returns the number of visible rows in the text area.
 o getTag()
Returns the text area tag.
 o getText()
Returns the initial text of the text area.
 o removePropertyChangeListener(PropertyChangeListener)
Removes the PropertyChangeListener from the internal list.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes the VetoableChangeListener from the internal list.
 o setColumns(int)
Sets the number of visible columns in the text area.
 o setName(String)
Sets the control name of the text area.
 o setRows(int)
Sets the number of visible rows in the text area.
 o setText(String)
Sets the initial text of the text area.
 o toString()
Returns a String representation of the text area tag.

Constructors

 o TextAreaFormElement
 public TextAreaFormElement()
Constructs a default TextAreaFormElement object.

 o TextAreaFormElement
 public TextAreaFormElement(String name)
Constructs a TextAreaFormElement object with the specified control name.

Parameters:
The - control name of the text area.
 o 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.

Methods

 o 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
 o 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
 o getColumns
 public int getColumns()
Returns the number of visible columns in the text area.

Returns:
The number of columns.
 o getName
 public String getName()
Returns the control name of the text area.

Returns:
The control name.
 o getRows
 public int getRows()
Returns the number of visible rows in the text area.

Returns:
The number of rows.
 o getTag
 public String getTag()
Returns the text area tag.

Returns:
The tag.
 o getText
 public String getText()
Returns the initial text of the text area.

Returns:
The initial text.
 o 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
 o 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
 o 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.
 o 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.
 o 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.
 o 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.
 o 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