net.sf.jolene.dom
Class TextArea

java.lang.Object
  extended by net.sf.jolene.dom.HTMLElement
      extended by net.sf.jolene.dom.TextArea
All Implemented Interfaces:
java.lang.Cloneable, IAttributes, ICollection, IStyles

public final class TextArea
extends HTMLElement

A TextArea in a html document.

Since:
Oct 11, 2003
Author:
Dan Howard

Constructor Summary
TextArea()
          Default constructor.
TextArea(java.lang.String name)
          Construct a textarea with the specified name.
 
Method Summary
 TextArea clone()
          Returns a clone of the textarea object.
 void setContent(java.lang.String text)
          Sets the text of the textarea.
 void setName(java.lang.String name)
          Sets the name of the textarea.
 java.lang.String toString()
          Renders the textarea.
 
Methods inherited from class net.sf.jolene.dom.HTMLElement
clear, getAfterText, getAttribute, getBeforeText, getContent, getName, getStyle, getTag, getValue, hasAttribute, hasStyle, isChecked, isDisabled, isReadonly, isRenderable, keySet, removeAttribute, removeStyle, resetStyles, resetStyles, setAfterText, setAttribute, setBeforeText, setChecked, setDisabled, setReadonly, setRenderable, setStyle, setStyles, setStyles, setValue, swapWith
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextArea

public TextArea()
Default constructor.


TextArea

public TextArea(java.lang.String name)
Construct a textarea with the specified name.

Parameters:
name - name of the textarea.
Method Detail

clone

public TextArea clone()
Returns a clone of the textarea object.

Overrides:
clone in class HTMLElement
Returns:
TextArea object.
See Also:
DocumentFactory

setContent

public void setContent(java.lang.String text)
Sets the text of the textarea. Same as setValue.

Overrides:
setContent in class HTMLElement
Parameters:
text - text value to set on TextArea.
See Also:
HTMLElement.getContent()

setName

public void setName(java.lang.String name)
Sets the name of the textarea.

Overrides:
setName in class HTMLElement
Parameters:
name - name of the textarea.

toString

public java.lang.String toString()
Renders the textarea.

Overrides:
toString in class HTMLElement
Returns:
The textarea as a html string.