class fwt::Text
sys::Obj fwt::Widget fwt::TextWidget fwt::Text
Text is used to enter and modify text.
- bg
-
Color? bg
The current background color of text field Defaults to null (system default)
- fg
-
Color? fg
The current foreground color for text. Defaults to null (system default)
- make
-
new make(|This|? f := null)
Default constructor.
- modify
-
virtual override Void modify(Int start, Int replaceLen, Str newText)
Replace the text with
newText
starting at positionstart
for a length ofreplaceLen
. - onAction
-
EventListeners onAction()
Callback when Return/Enter key is pressed in a single line text editor (not invoked for multiLine)
Event id fired:
Event fields:
- none
- onModify
-
EventListeners onModify()
Callback when the text is modified.
Event id fired:
Event fields:
- none
- password
-
const Bool password := false
True to make this a password text field which hides the characters being typed. Default is false. This field cannot be changed once the widget is constructed.
- text
-
virtual override Str text
The current text. Defaults to "".