com.sas.servlet.beans
Class BaseTextArea

java.lang.Object
  |
  +--com.sas.Component
        |
        +--com.sas.servlet.beans.BaseTransformation
              |
              +--com.sas.servlet.beans.BaseTextArea
Direct Known Subclasses:
TextArea

public abstract class BaseTextArea
extends BaseTransformation
implements TextAreaInterface

Transformation bean base object for creating a TextArea input field

See Also:
Serialized Form

Constructor Summary
BaseTextArea()
           
 
Method Summary
 void appendText(String text)
          Appends the given text to the current text
 int getColumns()
          Gets the number of columns in this text area.
 int getRows()
          Gets the number of visible text lines.
 String getText()
          Gets the text of the TextArea
 String getWrap()
          Gets the current wrap type
 void setColumns(int columns)
          Sets the number of columns in this text area.
 void setRows(int rows)
          Sets the number of visible text lines.
 void setText(String text)
          Sets the text of the TextArea.
 void setWrap(String value)
          Specifies whether lines longer than the text area's column width wrap to the next line
 
Methods inherited from class com.sas.servlet.beans.BaseTransformation
getCustomAttributes, getDescription, getName, getParent, getRequest, getResponse, setCustomAttributes, setDescription, setName, setParent, setRequest, setResponse, toString, write, write, write, write
 
Methods inherited from class com.sas.Component
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, beansIsDesignTime, beansSetDesignTime, clone, clone, detachModel, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getExtendedBeanInfo, getLinkInfo, getModelInterface, getRequiredInterfaces, getResources, getStringResource, getViewInterfaceSupportInfo, initialize, initializeComponent, isDesignTime, isLinked, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setComponentDescription, setComponentSupportInfo, setDefaultValues, setLinkInfo, setModelInterface, setRequiredInterfaces, setViewInterfaceSupportInfo, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, validateObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTextArea

public BaseTextArea()
Method Detail

setRows

public void setRows(int rows)
Sets the number of visible text lines. Users should be able to enter more lines than this, so the client must provide some means of scrolling through the contents of the textarea field. The default is 3.
Specified by:
setRows in interface TextAreaInterface
Parameters:
rows - The number of visible lines.

getRows

public int getRows()
Gets the number of visible text lines.
Specified by:
getRows in interface TextAreaInterface
Returns:
The number of visible text lines

setColumns

public void setColumns(int columns)
Sets the number of columns in this text area. The default is 40.
Specified by:
setColumns in interface TextAreaInterface
Parameters:
columns - The number of columns in the text area

getColumns

public int getColumns()
Gets the number of columns in this text area.
Specified by:
getColumns in interface TextAreaInterface
Returns:
The number of columns in the text area

setText

public void setText(String text)
Sets the text of the TextArea.
Specified by:
setText in interface TextAreaInterface
Parameters:
text - The text of the TextArea

getText

public String getText()
Gets the text of the TextArea
Specified by:
getText in interface TextAreaInterface
Returns:
The text of the TextArea

appendText

public void appendText(String text)
Appends the given text to the current text
Specified by:
appendText in interface TextAreaInterface
Parameters:
text - The text to be appended

setWrap

public void setWrap(String value)

Specifies whether lines longer than the text area's column width wrap to the next line

Valid values are:

OFF - Disables word wrap HARD - Line breaks are included when the form is submitted SOFT - Line breaks are not included when the form is submitted VIRTUAL - Same as soft
Specified by:
setWrap in interface TextAreaInterface
Parameters:
wrap - The wrap type

getWrap

public String getWrap()
Gets the current wrap type
Specified by:
getWrap in interface TextAreaInterface
Returns:
The wrap type


Version: 1.2.20000317.001 Formatted: 2000/07/06 15:57:33PM