AbstractEcho.ListBox, Echo.SelectField| Instance Method Summary | |
|---|---|
| Public, Virtual | doAction()Programmatically performs a list select action. |
| Methods inherited from class Echo.Component |
getFocusComponent, add, addListener, fireEvent, get, getComponent, getComponentCount, getIndex, getLayoutDirection, getLocale, getLocalStyleData, getRenderLayoutDirection, getRenderLocale, getStyle, getStyleName, indexOf, isActive, isAncestorOf, isEnabled, isRenderEnabled, register, render, renderIndex, remove, removeAll, removeListener, set, setEnabled, setIndex, setLayoutDirection, setLocale, setStyle, setStyleName, toString |
| Component Properties | ||
|---|---|---|
items |
Array
|
the array of items contained in the list component. The value of the 'text' property or toString() value of the item will be displayed in the selection component. |
selectedId |
the values of the id property of the selected item, or an array of the id values when multiple items are selected | |
selection |
the index of the selected item, or an array of the indices of selected items when multiple items are selected | |
| Style Properties | ||
|---|---|---|
border |
Border (String or Object)
|
the default border |
disabledBackground |
Color (String)
|
the disabled background color |
disabledBorder |
Border (String or Object)
|
the disabled border |
disabledFont |
Font (Object)
|
the disabled font |
disabledForeground |
Color (String)
|
the disabled foreground color |
height |
Extent (Number or String)
|
the component height |
insets |
Insets (Number, String, or Object)
|
the inset margin between the border and the items of the list component |
rolloverBackground |
Color (String)
|
the rollover background color |
rolloverBorder |
Border (String or Object)
|
the rollover border |
rolloverFont |
Font (Object)
|
the rollover font |
rolloverForeground |
Color (String)
|
the rollover foreground color |
width |
Extent (Number or String)
|
the component width |
| Events | ||
|---|---|---|
action |
An event fired when an item is selected (clicked). | |