class fwt::Text
sys::Obj fwt::Widget fwt::TextWidget fwt::Text
Text is used to enter and modify text.
- bg
-
Color? bgThe current background color of text field Defaults to null (system default)
- fg
-
Color? fgThe 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
newTextstarting at positionstartfor 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 := falseTrue 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 textThe current text. Defaults to "".