class fwt::Combo
sys::Obj fwt::Widget fwt::Combo
Combo is a combination of a text field and a list drop down.
- dropDown
-
const Bool dropDown := true
If true then the list is displayed in a drop down window. If false then the list is displayed directly under the text field. Default is true.
- editable
-
const Bool editable := false
Set to true to display editing of the combo's text field. Default is false.
- font
-
Font? font
Font for text. Defaults to null (system default).
- index
-
Get the index of the specified item. Items are matched to indices via
Obj.equals
. SeeList.index
. - items
-
Obj[] items
The list selection items displayed via
Obj.toStr
. Defaults to the empty list. - make
-
new make(|This|? f := null)
Default constructor.
- onAction
-
EventListeners onAction()
Callback when Return/Enter key is pressed.
Event id fired:
Event fields:
- none
- onModify
-
EventListeners onModify()
Callback when either the text field or item is changed.
Event id fired:
Event fields:
- none
- selected
-
The currently selected item. Items are matched to the
items
list usingindex
. - selectedIndex
-
The currently selected index of
items
or null if no selection. - text
-
Str text
The widget's current text. Defaults to "".