M - the model typepublic interface StoreSelectionModel<M>
The selection model supports 3 different selection modes:
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Store<M> 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(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.
|
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(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.
|
void bind(Store<M> store)
store - the bound storevoid deselect(int index)
index - the index of the item to be deselectedvoid deselect(int start,
int end)
start - the start indexend - the end indexvoid deselect(M... items)
items - the items to deselectvoid deselect(M item)
item - the item to be deselectedvoid deselectAll()
M getSelectedItem()
Style.SelectionMode getSelectionMode()
boolean isSelected(M item)
item - the itemvoid refresh()
void select(int index,
boolean keepExisting)
index - the index of the item to be selectedkeepExisting - true to keep existing selectedvoid select(int start,
int end,
boolean keepExisting)
start - the start indexend - the end indexkeepExisting - true to keep existing selectedvoid select(List<M> items, boolean keepExisting)
items - the items to selectkeepExisting - true to keep existing selectedvoid select(boolean keepExisting,
M... items)
keepExisting - true to keep existing selecteditems - the itemsvoid 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 modeCopyright © 2012. All Rights Reserved.