|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.gui.AbstractComponent com.groiss.gui.component.Textarea
public class Textarea
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.
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 |
---|
public Textarea()
public Textarea(java.lang.String name, int rows, int cols)
rows
- - number of rows (height of the textarea)cols
- - number of columns (width of the textarea)public Textarea(java.lang.String name, int rows, int cols, java.lang.String value)
rows
- number of rowscols
- number of columnsvalue
- the initial set textpublic Textarea(java.lang.String name, int rows, int cols, java.lang.String text, java.lang.String styleClass)
rows
- number of rowscols
- number of columnstext
- the initial set textstyleClass
- the name of a CSS classMethod Detail |
---|
public 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(java.lang.String wrap)
wrap
- - the wrap mode; must be "virtual", "off" or "physical"public java.lang.String getWrapMode()
public void setText(java.lang.String text)
text
- - the text Stringpublic java.lang.String getText()
public void setContent(java.lang.Object o)
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |