com.groiss.gui.component
Class Textarea

java.lang.Object
  extended by com.groiss.gui.AbstractComponent
      extended by com.groiss.gui.component.Textarea
All Implemented Interfaces:
Component, java.io.Serializable, java.lang.Cloneable

public class Textarea
extends AbstractComponent

Textarea component is used to enter more than one line of text. it should be used in conjunction with the ROWS and COLS attributes to set the size of the textarea.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.groiss.gui.AbstractComponent
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputter, parent, parentElem, READONLY, root, viewMode
 
Constructor Summary
Textarea()
          constructs a new empty textarea
Textarea(java.lang.String name, int rows, int cols)
          standard constructor
Textarea(java.lang.String name, int rows, int cols, java.lang.String value)
          constructor
Textarea(java.lang.String name, int rows, int cols, java.lang.String text, java.lang.String styleClass)
          constructor
 
Method Summary
 int getCols()
           
 java.lang.Object getContent()
           
 int getRows()
           
 java.lang.String getText()
           
 java.lang.String getWrapMode()
           
 void setCols(int cols)
          sets the number of columns
 void setContent(java.lang.Object o)
          Set the text of the textarea.
 void setRows(int rows)
          sets the number of rows
 void setSize(int rows, int cols)
          sets the size of the textarea - rows and columns
 void setText(java.lang.String text)
          sets the text
 void setWrapMode(java.lang.String wrap)
          sets how to handle word-wrapping display in the textarea
 
Methods inherited from class com.groiss.gui.AbstractComponent
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Textarea

public Textarea()
constructs a new empty textarea


Textarea

public Textarea(java.lang.String name,
                int rows,
                int cols)
standard constructor

Parameters:
rows - - number of rows (height of the textarea)
cols - - number of columns (width of the textarea)

Textarea

public Textarea(java.lang.String name,
                int rows,
                int cols,
                java.lang.String value)
constructor

Parameters:
rows - number of rows
cols - number of columns
value - the initial set text

Textarea

public Textarea(java.lang.String name,
                int rows,
                int cols,
                java.lang.String text,
                java.lang.String styleClass)
constructor

Parameters:
rows - number of rows
cols - number of columns
text - the initial set text
styleClass - the name of a CSS class
Method Detail

setSize

public void setSize(int rows,
                    int cols)
sets the size of the textarea - rows and columns

Parameters:
rows - - the number of rows
cols - - the number of columns

setRows

public void setRows(int rows)
sets the number of rows

Parameters:
rows - - the number of rows

getRows

public int getRows()

setCols

public void setCols(int cols)
sets the number of columns

Parameters:
cols - - the number of columns

getCols

public int getCols()

setWrapMode

public void setWrapMode(java.lang.String wrap)
sets how to handle word-wrapping display in the textarea

Parameters:
wrap - - the wrap mode; must be "virtual", "off" or "physical"

getWrapMode

public java.lang.String getWrapMode()

setText

public void setText(java.lang.String text)
sets the text

Parameters:
text - - the text String

getText

public java.lang.String getText()

setContent

public void setContent(java.lang.Object o)
Set the text of the textarea.

Specified by:
setContent in interface Component
Overrides:
setContent in class AbstractComponent
Parameters:
o - any object where the string representation is used for rendering

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface Component
Overrides:
getContent in class AbstractComponent
Returns:
the content object of the component


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.