class fwt::Text

sys::Obj
  fwt::Widget
    fwt::TextWidget
      fwt::Text

@Js
@Serializable

Source

Text is used to enter and modify text.

bg

Color? bg

Source

The current background color of text field Defaults to null (system default)

fg

Color? fg

Source

The current foreground color for text. Defaults to null (system default)

make

new make(|This|? f := null)

Source

Default constructor.

modify

virtual override Void modify(Int start, Int replaceLen, Str newText)

Source

Replace the text with newText starting at position start for a length of replaceLen.

onAction

EventListeners onAction()

Source

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()

Source

Callback when the text is modified.

Event id fired:

Event fields:

  • none
password

const Bool password := false

Source

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

Source

The current text. Defaults to "".