TextArea
TextArea is a multi-line area that displays plain text,
optionally wrapped at word boundaries (whitespace),
and internally handles scrolling. <textarea text="TextArea" wrap="true" columns="40" rows="2" />
Properties
text | string | '' | The text contained in this textarea. |
columns | integer | 0 | The number of visible letters in a column. |
rows | integer | 0 | The number of visible rows for this textarea. |
editable | boolean | true | The specified boolean to indicate whether or not this textarea
should be editable. A non-editable area is focusable, and selectable. |
wrap | boolean | false | If set to true the lines will be wrapped at word boundaries (whitespace)
if they are too long to fit within the allocated width. |
border | boolean | true | If set to false, no border will be drawn around the
textarea, and its background will be set to the default
background color, to visually "blend" with its
container. You can still override this by setting a
custom background color. |
start | integer | 0 | Start index of the selection. |
end | integer | 0 | End index of the selection, same as the caret position. |
name, enabled, visible, tooltip, property, width, height, colspan, rowspan,
weightx, weighty, halign, and valign parameters are similar to
component |
Listeners
action | Gives notification (invokes the given method) that there was an
insert into the text or a portion of the text has been removed. |
insert | Gives notification that there was an insert into the text
(and possibly a portion has been removed too). |
remove | Gives notification that a portion of the text has been removed. |
caret | To track whenever the caret position has been changed. |
Keyboard-actions
Home | Moves to beginning of line |
End | Moves to end of row or line |
Ctrl-Home | Moves to beginning of data |
Ctrl-End | Moves to end of data |
Up arrow | Moves insertion point up one line |
Down arrow | Moves insertion point down one line |
Page Up | Moves up one view |
Page Down | Moves down one view |
Right arrow | Moves insertion point one character to the right |
Left arrow | Moves insertion point one character to the left |
Ctrl-right arrow | Moves insertion point to beginning of next word |
Ctrl-left arrow | Moves insertion point to beginning of previous word |
+Shift | Extends selection |
Enter, Return | Inserts line-break |
Backspace | Deletes the previous character |
Delete | Removes the following character |
Ctrl-A, Ctrl-Slash | Selects all |
Ctrl-Backslash | Deselects all |
Ctrl-X | Cuts selected text into the clipboard |
Ctrl-C | Copies selected text into the clipboard |
Ctrl-V | Pastes the clipboard content |
Tab, Shift-Tab | Navigate forward, backward |
|