|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
C - the selection container typeT - the item typepublic interface SelectionModel<C extends Container<T>,T extends Component>
Base interface for selection models. Defines the minimum methods required by a selection model.
| Method Summary | |
|---|---|
void |
bind(C container)
Binds the selection model to the container. |
void |
deselect(int index)
Deselects the item at the given index. |
void |
deselect(int start,
int end)
Deselects the range. |
void |
deselect(java.util.List<T> items)
Deselects the items. |
void |
deselect(T... items)
Deselects the items. |
void |
deselect(T item)
Deselects the item. |
void |
deselectAll()
Deselects all selections. |
T |
getSelectedItem()
Returns the selected item. |
java.util.List<T> |
getSelectedItems()
Returns the selected items. |
boolean |
isSelected(T item)
Returns true if the item is selcted. |
void |
refresh()
Refreshes the current selections. |
void |
select(boolean keepExisting,
T... items)
Selects the items. |
void |
select(int index,
boolean keepExisting)
Selects the item at the given index. |
void |
select(int start,
int end,
boolean keepExisting)
Selects the range. |
void |
select(java.util.List<T> items,
boolean keepExisting)
Selects the items. |
void |
select(T item,
boolean keepExisting)
Selects the item. |
void |
selectAll()
Selects all items. |
| Method Detail |
|---|
void bind(C container)
container - the containervoid deselect(int index)
index - the index of the item to be deselected
void deselect(int start,
int end)
start - the start indexend - the end indexvoid deselect(java.util.List<T> items)
items - the itemvoid deselect(T... items)
items - the items to deselectvoid deselect(T item)
item - the item to be deselectedvoid deselectAll()
T getSelectedItem()
java.util.List<T> getSelectedItems()
boolean isSelected(T item)
item - the item
void refresh()
void select(int index,
boolean keepExisting)
index - the index of the item to be selectedkeepExisting - true to keep existing selected
void select(int start,
int end,
boolean keepExisting)
start - the start indexend - the end indexkeepExisting - true to keep existing selected
void select(java.util.List<T> items,
boolean keepExisting)
items - the items to selectkeepExisting - true to keep existing selected
void select(boolean keepExisting,
T... items)
keepExisting - true to keep existing selecteditems - the items
void select(T item,
boolean keepExisting)
item - the itemkeepExisting - true to keep existing selectedvoid selectAll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||