|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.util.html.HTMLTagAttributes
com.ibm.as400.util.html.TextAreaFormElement
public class TextAreaFormElement
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 Summary | |
---|---|
TextAreaFormElement()
Constructs a default TextAreaFormElement object. |
|
TextAreaFormElement(String name)
Constructs a TextAreaFormElement object with the specified control name. |
|
TextAreaFormElement(String name,
int rows,
int cols)
Constructs a TextAreaFormElement object with the specified control name, number of rows, and columns. |
Method Summary | |
---|---|
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds the VetoableChangeListener. |
int |
getColumns()
Returns the number of visible columns in the text area. |
String |
getDirection()
Returns the direction of the text interpretation. |
String |
getFOTag()
Returns a comment tag. |
String |
getLanguage()
Returns the language of the input element. |
String |
getName()
Returns the control name of the text area. |
int |
getRows()
Returns the number of visible rows in the text area. |
String |
getTag()
Returns the text area tag. |
String |
getText()
Returns the initial text of the text area. |
void |
removeVetoableChangeListener(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(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 text area. |
void |
setRows(int rows)
Sets the number of visible rows in the text area. |
void |
setText(String text)
Sets the initial text of the text area. |
String |
toString()
Returns a String representation of the text area tag. |
Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes |
---|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextAreaFormElement()
public TextAreaFormElement(String name)
name
- The control name of the text area.public TextAreaFormElement(String name, int rows, int cols)
name
- The control name of the text area.rows
- The number of rows.cols
- The number of columns.Method Detail |
---|
public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public int getColumns()
public String getDirection()
public String getLanguage()
public String getName()
public int getRows()
public String getFOTag()
getFOTag
in interface HTMLTagElement
public String getTag()
getTag
in interface HTMLTagElement
public String getText()
public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setColumns(int cols) throws PropertyVetoException
cols
- The number of columns.
PropertyVetoException
- If a change is vetoed.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.
PropertyVetoException
- If a change is vetoed.public void setRows(int rows) throws PropertyVetoException
rows
- The number of rows.
PropertyVetoException
- If a change is vetoed.public void setText(String text) throws PropertyVetoException
text
- The initial text.
PropertyVetoException
- If a change is vetoed.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |