com.ge.research.html
Class TextAreaTag

java.lang.Object
  extended bycom.ge.research.html.HTMLTag
      extended bycom.ge.research.html.TextAreaTag

public class TextAreaTag
extends HTMLTag

Encapsulates all the attributes of an HTML "INPUT" element, its accessors, validations, and default values.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:34 $
Author:
garbiras
Created on:
Sep 9, 2002

Field Summary
 
Fields inherited from class com.ge.research.html.HTMLTag
HORIZONTAL_LINE, LINEBREAK, reconstructTag, tag, WHITESPACE
 
Constructor Summary
TextAreaTag()
          Default constructor.
 
Method Summary
 double getCols()
          Returns the value of the HTML Tag COLS attribute.
 boolean getDisabled()
          Returns the value of the HTML Tag DISABLED attribute.
 java.lang.String getName()
          Returns the value of the HTML Tag NAME attribute.
 java.lang.String getOnChange()
          Returns the value of the HTML Tag ONCHANGE behavior.
 double getRows()
          Returns the value of the HTML Tag ROWS attribute.
 java.lang.String getText()
          Returns the contents of the tag.
 java.lang.String getWrap()
          Returns the value of the HTML Tag WRAP attribute.
protected  void resetTagSpecificInformation()
          Resets the tag attributes and content of the HTML Tag to their default values.
 void setCols(double attribute)
          Sets the HTML Tag COLS attribute.
 void setDisabled(boolean attribute)
          Sets the HTML Tag DISABLED attribute.
 void setName(java.lang.String attribute)
          Sets the HTML Tag NAME attribute.
 void setOnChange(java.lang.String attribute)
          Sets the HTML Tag ONCHANGE behavior.
 void setRows(double attribute)
          Sets the HTML Tag ROWS attribute.
 void setText(java.lang.String text)
          Sets the contents of this tag.
 void setWrap(java.lang.String attribute)
          Sets the WRAP attribute and validates its value.
protected  void writeTagSpecificAttributes()
          Adds the tag specific attribute information to the HTML Tag.
protected  void writeTagSpecificData()
          Adds the tag content to the HTML Tag.
 
Methods inherited from class com.ge.research.html.HTMLTag
addAttribute, addAttribute, getId, getOnClick, getOnContextMenu, getOnDblClick, getOnDrag, getOnDragEnd, getOnDragStart, getOnFocus, getOnFocusOut, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnMoveEnd, getOnMoveStart, getStyle, getStyleClass, getTitle, removeAttribute, reset, setId, setOnClick, setOnContextMenu, setOnDblClick, setOnDrag, setOnDragEnd, setOnDragStart, setOnFocus, setOnFocusOut, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnMoveEnd, setOnMoveStart, setStyle, setStyleClass, setTitle, toString, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextAreaTag

public TextAreaTag()
Default constructor. Calls super(TagPropertyConstants.TEXTAREA_TAG).

See Also:
TagPropertyConstants.TEXTAREA_TAG
Method Detail

getCols

public double getCols()
Returns the value of the HTML Tag COLS attribute.

Returns:
The current value of the HTML Tag COLS attribute

getDisabled

public boolean getDisabled()
Returns the value of the HTML Tag DISABLED attribute.

Returns:
true if the tag is disabled; false if the tag is enabled

getName

public java.lang.String getName()
Returns the value of the HTML Tag NAME attribute.

Returns:
The current value of the HTML Tag NAME attribute

getOnChange

public java.lang.String getOnChange()
Returns the value of the HTML Tag ONCHANGE behavior.

Returns:
The current value of the HTML Tag ONCHANGE behavior

getRows

public double getRows()
Returns the value of the HTML Tag ROWS attribute.

Returns:
The current value of the HTML Tag ROWS attribute

getText

public java.lang.String getText()
Returns the contents of the tag.

Returns:
The current contents of this tag

getWrap

public java.lang.String getWrap()
Returns the value of the HTML Tag WRAP attribute.

Returns:
The current value of the HTML Tag WRAP attribute

setCols

public void setCols(double attribute)
Sets the HTML Tag COLS attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag COLS attribute
See Also:
HTMLTag.reconstructTag

setDisabled

public void setDisabled(boolean attribute)
Sets the HTML Tag DISABLED attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - true if this HTML Tag should be disabled; false if this HTML Tag should be enabled.
See Also:
HTMLTag.reconstructTag

setName

public void setName(java.lang.String attribute)
Sets the HTML Tag NAME attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag NAME attribute
See Also:
HTMLTag.reconstructTag

setOnChange

public void setOnChange(java.lang.String attribute)
Sets the HTML Tag ONCHANGE behavior. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag ONCHANGE behavior
See Also:
HTMLTag.reconstructTag

setRows

public void setRows(double attribute)
Sets the HTML Tag ROWS attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag ROWS attribute
See Also:
HTMLTag.reconstructTag

setText

public void setText(java.lang.String text)
Sets the contents of this tag. Sets the HTMLTag.reconstructTag value to true.

Parameters:
text - the content for this tag
See Also:
HTMLTag.reconstructTag

setWrap

public void setWrap(java.lang.String attribute)
Sets the WRAP attribute and validates its value. If the new value is not an acceptable value, then the WRAP attribute is set to TagPropertyConstants.WRAP_SOFT. Sets the HTMLTag.reconstructTag value to true.

Parameters:
attribute - the new WRAP value
See Also:
TagPropertyConstants.isWrapType(java.lang.String), HTMLTag.reconstructTag

resetTagSpecificInformation

protected void resetTagSpecificInformation()
Description copied from class: HTMLTag
Resets the tag attributes and content of the HTML Tag to their default values. Called by HTMLTag.reset(). This method is not implemented in HTMLTag. Subclasses that contain tag content information should implement this method to set their information to their default values.

Overrides:
resetTagSpecificInformation in class HTMLTag
See Also:
HTMLTag.reset()

writeTagSpecificAttributes

protected void writeTagSpecificAttributes()
Description copied from class: HTMLTag
Adds the tag specific attribute information to the HTML Tag. Called by HTMLTag.toString(). This method is not implemented in HTMLTag. Subclasses that contain additional attribute information should implement this method to write those attributes in the inline tag.

Overrides:
writeTagSpecificAttributes in class HTMLTag
See Also:
HTMLTag.toString()

writeTagSpecificData

protected void writeTagSpecificData()
Description copied from class: HTMLTag
Adds the tag content to the HTML Tag. Called by HTMLTag.toString(). This method is not implemented in HTMLTag. Subclasses that contain tag content information should implement this method to writeout that content in between the opening and closing tags.

Overrides:
writeTagSpecificData in class HTMLTag
See Also:
HTMLTag.toString()