public class TextAreaFormElement extends HTMLTagAttributes implements java.io.Serializable
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 and Description |
---|
TextAreaFormElement()
Constructs a default TextAreaFormElement object.
|
TextAreaFormElement(java.lang.String name)
Constructs a TextAreaFormElement object with the specified control name.
|
TextAreaFormElement(java.lang.String name,
int rows,
int cols)
Constructs a TextAreaFormElement object with the specified control name,
number of rows, and columns.
|
Modifier and Type | Method and Description |
---|---|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds the VetoableChangeListener.
|
int |
getColumns()
Returns the number of visible columns in the text area.
|
java.lang.String |
getDirection()
Returns the direction of the text interpretation.
|
java.lang.String |
getFOTag()
Returns a comment tag.
|
java.lang.String |
getLanguage()
Returns the language of the input element.
|
java.lang.String |
getName()
Returns the control name of the text area.
|
int |
getRows()
Returns the number of visible rows in the text area.
|
java.lang.String |
getTag()
Returns the text area tag.
|
java.lang.String |
getText()
Returns the initial text of the text area.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes the VetoableChangeListener from the internal list.
|
void |
setColumns(int cols)
Sets the number of visible columns in the text area.
|
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 text area.
|
void |
setRows(int rows)
Sets the number of visible rows in the text area.
|
void |
setText(java.lang.String text)
Sets the initial text of the text area.
|
java.lang.String |
toString()
Returns a String representation of the text area tag.
|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
public TextAreaFormElement()
public TextAreaFormElement(java.lang.String name)
name
- The control name of the text area.public TextAreaFormElement(java.lang.String name, int rows, int cols)
name
- The control name of the text area.rows
- The number of rows.cols
- The number of columns.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public int getColumns()
public java.lang.String getDirection()
public java.lang.String getLanguage()
public java.lang.String getName()
public int getRows()
public java.lang.String getFOTag()
getFOTag
in interface HTMLTagElement
public java.lang.String getTag()
getTag
in interface HTMLTagElement
public java.lang.String getText()
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setColumns(int cols) throws java.beans.PropertyVetoException
cols
- The number of columns.java.beans.PropertyVetoException
- If a change is vetoed.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.java.beans.PropertyVetoException
- If a change is vetoed.public void setRows(int rows) throws java.beans.PropertyVetoException
rows
- The number of rows.java.beans.PropertyVetoException
- If a change is vetoed.public void setText(java.lang.String text) throws java.beans.PropertyVetoException
text
- The initial text.java.beans.PropertyVetoException
- If a change is vetoed.public java.lang.String toString()
toString
in class java.lang.Object