Fan

 

class

fwt::Text

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

Text is used to enter and modify text.

Slots

modifySource

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

Overrides fwt::TextWidget.modify

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

onActionSource

readonly EventListeners onAction := EventListeners()

Callback when Return/Enter key is pressed in a single line text editor (not invoked for multiLine)

Event id fired:

Event fields:

  • none
onModifySource

readonly EventListeners onModify := EventListeners()

Callback when the text is modified.

Event id fired:

Event fields:

  • none
passwordSource

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.

textSource

override native Str text

Overrides fwt::TextWidget.text

The current text. Defaults to "".