com.sas.servlet.beans
Interface TextAreaInterface

All Known Implementing Classes:
BaseTextArea

public interface TextAreaInterface
extends TransformationInterface, StringDataInterface, ComponentInterface

Transformation bean definition for creating a TextArea input field


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 value)
          Sets the number of columns in this text area.
 void setRows(int value)
          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 interface com.sas.servlet.beans.TransformationInterface
getCustomAttributes, getDescription, getName, getParent, getRequest, getResponse, setCustomAttributes, setDescription, setName, setParent, setRequest, setResponse, write, write, write, write
 

Method Detail

setRows

public void setRows(int value)
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.
Parameters:
rows - The number of visible lines.

getRows

public int getRows()
Gets the number of visible text lines.
Returns:
The number of visible text lines

setColumns

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

getColumns

public int getColumns()
Gets the number of columns in this text area.
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 StringDataInterface
Parameters:
value - The text of the TextArea

getText

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

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
Parameters:
wrap - The wrap type

getWrap

public String getWrap()
Gets the current wrap type
Returns:
The wrap type

appendText

public void appendText(String text)
Appends the given text to the current text.
Parameters:
text - The text to be appended


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