|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SelectionModel.Multi
A SelectionModel that supports multiple selections to be made.
This interface has a contract of having the same behavior, no matter how the selection model is interacted with. In other words, if something is forbidden to do in e.g. the user interface, it must also be forbidden to do in the server-side and client-side APIs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel |
---|
SelectionModel.Multi, SelectionModel.None, SelectionModel.Single |
Method Summary | |
---|---|
boolean |
deselect(java.util.Collection<?> itemIds)
Marks items as deselected. |
boolean |
deselect(java.lang.Object... itemIds)
Marks items as deselected. |
boolean |
deselectAll()
Marks all the items in the current Container as deselected |
boolean |
select(java.util.Collection<?> itemIds)
Marks items as selected. |
boolean |
select(java.lang.Object... itemIds)
Marks items as selected. |
boolean |
selectAll()
Marks all the items in the current Container as selected |
Methods inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel |
---|
getSelectedRows, isSelected, reset, setGrid |
Method Detail |
---|
boolean select(java.lang.Object... itemIds) throws java.lang.IllegalArgumentException
This method does not clear any previous selection state, only adds to it.
itemIds
- the itemId(s) to mark as selected
true
if the selection state changed.
false
if all the given itemIds already were
selected
java.lang.IllegalArgumentException
- if the itemIds
varargs array is
null
deselect(Object...)
boolean select(java.util.Collection<?> itemIds) throws java.lang.IllegalArgumentException
This method does not clear any previous selection state, only adds to it.
itemIds
- the itemIds to mark as selected
true
if the selection state changed.
false
if all the given itemIds already were
selected
java.lang.IllegalArgumentException
- if itemIds
is null
deselect(Collection)
boolean deselect(java.lang.Object... itemIds) throws java.lang.IllegalArgumentException
itemIds
- the itemId(s) to remove from being selected
true
if the selection state changed.
false
if none the given itemIds were selected
previously
java.lang.IllegalArgumentException
- if the itemIds
varargs array is
null
select(Object...)
boolean deselect(java.util.Collection<?> itemIds) throws java.lang.IllegalArgumentException
itemIds
- the itemId(s) to remove from being selected
true
if the selection state changed.
false
if none the given itemIds were selected
previously
java.lang.IllegalArgumentException
- if itemIds
is null
select(Collection)
boolean selectAll()
true
iff some items were previously not selecteddeselectAll()
boolean deselectAll()
true
iff some items were previously selectedselectAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |