public interface SelectDropDownList extends HTMLComponent
Represents a select list (drop down style) UI component
Please note:
For unresolved PolyScope entities, like Features, Variables and TCPs, that are selected in the
drop-down list, the item will be highlighted with a yellow border.
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 downvoid removeAllItems()
Remove all items
int getItemCount()
Object getSelectedItem()
int getSelectedIndex()
void selectItem(Object item)
item
- Select the itemvoid selectItemAtIndex(int index)
index
- Select the item at index index
where 0 specifies
the first item.Copyright © 2019. All rights reserved.