|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
M - the model typepublic interface StoreSelectionModel<M extends ModelData>
Defines the interface for store based selection models.
The selection model supports 3 different selection modes:
| Method Summary | |
|---|---|
void |
bind(Store store)
Binds the store to the selection model. |
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<M> items)
Deselects the items. |
void |
deselect(M... items)
Deselects the items. |
void |
deselect(M item)
Deselects the item. |
void |
deselectAll()
Deselects all selections. |
M |
getSelectedItem()
Returns the selected item. |
java.util.List<M> |
getSelectedItems()
Returns the selected items. |
Style.SelectionMode |
getSelectionMode()
Returns the selection mode. |
boolean |
isSelected(M item)
Returns true if the item is selected. |
void |
refresh()
Refreshes the current selections. |
void |
select(boolean keepExisting,
M... 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<M> items,
boolean keepExisting)
Selects the items. |
void |
select(M item,
boolean keepExisting)
Selects the item. |
void |
selectAll()
Selects all items. |
void |
setSelectionMode(Style.SelectionMode selectionMode)
Sets the selection mode. |
| Method Detail |
|---|
void bind(Store store)
store - the bound storevoid 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<M> items)
items - the itemvoid deselect(M... items)
items - the items to deselectvoid deselect(M item)
item - the item to be deselectedvoid deselectAll()
M getSelectedItem()
java.util.List<M> getSelectedItems()
Style.SelectionMode getSelectionMode()
boolean isSelected(M 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<M> items,
boolean keepExisting)
items - the items to selectkeepExisting - true to keep existing selected
void select(boolean keepExisting,
M... items)
keepExisting - true to keep existing selecteditems - the items
void select(M item,
boolean keepExisting)
item - the itemkeepExisting - true to keep existing selectedvoid selectAll()
void setSelectionMode(Style.SelectionMode selectionMode)
The selection model supports 3 different selection modes:
selectionMode - the selection mode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||