public interface SelectDropDownList extends HTMLComponent
Represents a select list (drop down style) UI component.
The implementation of the drop-down list have special rules and rendering for
Variable
objects. Unregistered variables are not visible nor selectable
(until they become registered).
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object item) |
int |
getItemCount() |
int |
getSelectedIndex() |
Object |
getSelectedItem() |
void |
removeAllItems()
Remove all items.
|
void |
selectItem(Object item) |
void |
selectItemAtIndex(int index) |
void |
setItems(List<?> items) |
isEnabled, isVisible, setEnabled, setVisible
void setItems(List<?> items)
items
- clear the current items and set the list of items to items
.void addItem(Object item)
item
- add a new item to the drop down.void removeAllItems()
int getItemCount()
Object getSelectedItem()
int getSelectedIndex()
void selectItem(Object item)
item
- Select the item.void selectItemAtIndex(int index)
index
- Select the item at index index
where 0 specifies the first item.Copyright © 2020. All rights reserved.