|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.api.Component | +--com.droplets.api.TextArea
A multi-line text input component. TextArea
s automatically sprout scroll bars
when necessary. The text is stored in the value
property, so use
getValue
and setValue
to
get and set it.
Fields inherited from class com.droplets.api.Component |
ANCHOR_CENTER, ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_NORTHEAST, ANCHOR_NORTHWEST, ANCHOR_SOUTH, ANCHOR_SOUTHEAST, ANCHOR_SOUTHWEST, ANCHOR_WEST, FILL_BOTH, FILL_HORIZONTAL, FILL_NONE, FILL_VERTICAL |
Constructor Summary | |
TextArea(LayoutPlacement p,
int cols,
int rows,
Window window)
Constructs a new TextArea . |
Method Summary | |
int |
getHeight()
Gets the minimum number of rows that should be displayed. |
int |
getWidth()
Gets the minimum number of columns that should be displayed. |
void |
select(int selectionStart,
int selectionEnd)
This method sets the start and end positions of the selected text, enforcing the restriction that the start position must be greater than or equal to zero. |
void |
selectAll()
Selects all the text in this text component |
void |
setHeight(int value)
Sets the minimum number of rows that should be displayed. |
void |
setHeight(int value,
java.lang.String skin)
Sets the minimum number of rows that should be displayed. |
void |
setWidth(int value)
Sets the minimum number of columns that should be displayed. |
void |
setWidth(int value,
java.lang.String skin)
Sets the minimum number of columns that should be displayed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextArea(LayoutPlacement p, int cols, int rows, Window window)
TextArea
.p
- specifies how this component should be laid out in the
enclosing panel (see LayoutPlacement
)cols
- the preferred number of text columns in the TextArea
rows
- the preferred number of text rowswindow
- the window in which this component will be placedMethod Detail |
public int getHeight()
public void setHeight(int value, java.lang.String skin)
value
- the number of rowsskin
- the skin name to use for this attributepublic void setHeight(int value)
value
- the number of rowspublic int getWidth()
public void setWidth(int value, java.lang.String skin)
value
- the number of columnsskin
- the skin name to use for this attributepublic void setWidth(int value)
value
- the number of columnspublic void selectAll()
public void select(int selectionStart, int selectionEnd)
selectionStart
- the zero-based index of the first character to be selected.selectionEnd
- the zero-based end position of the text to be selected.
The character at selectionEnd is not selected.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |