Package snap.util
Interface Selectable<T>
- All Known Implementing Classes:
BrowserCol
,BrowserView
,ComboBox
,ListArea
,ListView
,PopupList
,SwitchView
,TabBar
,TableCol
,TableView
,TabView
,TreeCol
,TreeView
public interface Selectable<T>
An interface for views that are selectable.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the items for a given name or UI view.int
Returns the selected index for given name or UI view.default T
Returns the selected item for given name or UI view.default boolean
removeItem
(T anItem) Removes a given item.default void
removeItemAndUpdateSel
(T anItem) Removes a given item and updates selection.static void
setItems
(Selectable<?> aSelectable, Object theItems) Sets items in given selectabledefault void
Sets the items for a given name or UI view.default void
setItemsList
(List<T> theItems) Sets the items for a given name or UI view.void
setSelIndex
(int aValue) Sets the selected index for given name or UI view.default void
setSelItem
(T anItem) Sets the selected item for given name or UI view.
-
Field Details
-
Items_Prop
- See Also:
-
SelIndex_Prop
- See Also:
-
SelItem_Prop
- See Also:
-
-
Method Details
-
setItems
Sets the items for a given name or UI view. -
getItemsList
Returns the items for a given name or UI view. -
setItemsList
Sets the items for a given name or UI view. -
getSelIndex
int getSelIndex()Returns the selected index for given name or UI view. -
setSelIndex
void setSelIndex(int aValue) Sets the selected index for given name or UI view. -
getSelItem
Returns the selected item for given name or UI view. -
setSelItem
Sets the selected item for given name or UI view. -
removeItem
Removes a given item. -
removeItemAndUpdateSel
Removes a given item and updates selection. -
setItems
Sets items in given selectable
-