Class zwt.ui.ListBox
Extends
zwt.ui.Widget.
A list box widget.
CSS rules
.zwt_listBox {}
Defined in: ListBox.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a list box.
|
Method Attributes | Method Name and Description |
---|---|
getModel()
Return the model associated to the list that provides the data displayed by the list.
|
|
Return the selection model used to maintain the selection state.
|
|
Determine whether this list box is disabled.
|
|
Return true if the list box is focusable and not disabled.
|
|
Determine whether multiple selection is enabled.
|
|
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
|
|
setDisabled(boolean_disabled)
Disable or enable the list box.
|
|
setModel(zwt_ui_ListModel_model)
Set the list model.
|
|
Disable or enable the multiple selection.
|
|
setSelectionModel(zwt_ui_ListSelectionModel_model)
Set the selection model.
|
- Methods borrowed from class zwt.ui.Widget:
- addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isVisible, onEvent, processContentEvent, processEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Method Detail
{zwt.ui.ListModel}
getModel()
Return the model associated to the list that provides the data displayed by the list.
- Returns:
- The list model
{zwt.ui.ListSelectionModel}
getSelectionModel()
Return the selection model used to maintain the selection state.
- Returns:
- The selection model.
{Boolean}
isDisabled()
Determine whether this list box is disabled. A disabled list box can't respond to user input and generate events. The list box is enabled initially by default.
- Returns:
- true if the button is disabled, false otherwise
{Boolean}
isFocusable()
Return true if the list box is focusable and not disabled.
- Returns:
- true if the list box is focusable
{Boolean}
isMultiple()
Determine whether multiple selection is enabled. Multiple selection is disabled by default.
- Returns:
- true if multiple selection is enabled, false otherwise
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
- Parameters:
- {zwt.event.FocusEvent} zwt_event_FocusEvent_event
- The focus event to process
setDisabled(boolean_disabled)
Disable or enable the list box.
- Parameters:
- {Boolean} boolean_disabled
- true to disable the list box, otherwise false
setModel(zwt_ui_ListModel_model)
Set the list model.
- Parameters:
- {zwt.ui.ListModel} zwt_ui_ListModel_model
- The list model to set
setMultiple()
Disable or enable the multiple selection.
- Parameters:
- {Boolean}
setSelectionModel(zwt_ui_ListSelectionModel_model)
Set the selection model.
- Parameters:
- {zwt.ui.ListSelectionModel} zwt_ui_ListSelectionModel_model
- The selection model to set.