public class Textarea extends AbstractComponent
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, parent, parentElem, READONLY, root, viewMode
LABELLEDBY
Constructor and Description |
---|
Textarea()
constructs a new empty textarea
|
Textarea(String name,
int rows,
int cols)
standard constructor
|
Textarea(String name,
int rows,
int cols,
String value)
constructor
|
Textarea(String name,
int rows,
int cols,
String text,
String styleClass)
constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getCols() |
Object |
getContent() |
int |
getRows() |
String |
getText() |
String |
getWrapMode() |
void |
setCols(int cols)
sets the number of columns
|
void |
setContent(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(String text)
sets the text
|
void |
setWrapMode(String wrap)
sets how to handle word-wrapping display in the textarea
|
addClass, clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setBrowserMode, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
public Textarea()
public Textarea(String name, int rows, int cols)
rows
- - number of rows (height of the textarea)cols
- - number of columns (width of the textarea)public Textarea(String name, int rows, int cols, String value)
name
- the name and idrows
- number of rowscols
- number of columnsvalue
- the initial set textpublic void setSize(int rows, int cols)
rows
- - the number of rowscols
- - the number of columnspublic void setRows(int rows)
rows
- - the number of rowspublic int getRows()
public void setCols(int cols)
cols
- - the number of columnspublic int getCols()
public void setWrapMode(String wrap)
wrap
- - the wrap mode; must be "virtual", "off" or "physical"public String getWrapMode()
public void setText(String text)
text
- - the text Stringpublic String getText()
public void setContent(Object o)
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
@enterprise 10.0.38589 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.