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 := trueIf 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 := falseSet to true to display editing of the combo's text field. Default is false.
- font
-
Font? fontFont 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[] itemsThe 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
itemslist usingindex. - selectedIndex
-
The currently selected index of
itemsor null if no selection. - text
-
Str textThe widget's current text. Defaults to "".