|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.components.grid.selection.AbstractSelectionModel
com.vaadin.ui.components.grid.selection.MultiSelectionModel
public class MultiSelectionModel
A default implementation of a SelectionModel.Multi
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel |
|---|
SelectionModel.Multi, SelectionModel.None, SelectionModel.Single |
| Field Summary |
|---|
| Fields inherited from class com.vaadin.ui.components.grid.selection.AbstractSelectionModel |
|---|
grid, selection |
| Constructor Summary | |
|---|---|
MultiSelectionModel()
|
|
| 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 |
java.util.Collection<java.lang.Object> |
getSelectedRows()
Returns a collection of all the currently selected itemIds. |
void |
reset()
Resets the selection model. |
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 class com.vaadin.ui.components.grid.selection.AbstractSelectionModel |
|---|
fireSelectionChangeEvent, isSelected, setGrid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel |
|---|
isSelected, setGrid |
| Constructor Detail |
|---|
public MultiSelectionModel()
| Method Detail |
|---|
public boolean select(java.lang.Object... itemIds)
throws java.lang.IllegalArgumentException
SelectionModel.MultiThis method does not clear any previous selection state, only adds to it.
select in interface SelectionModel.MultiitemIds - 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
nullSelectionModel.Multi.deselect(Object...)
public boolean select(java.util.Collection<?> itemIds)
throws java.lang.IllegalArgumentException
SelectionModel.MultiThis method does not clear any previous selection state, only adds to it.
select in interface SelectionModel.MultiitemIds - 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 nullSelectionModel.Multi.deselect(Collection)
public boolean deselect(java.lang.Object... itemIds)
throws java.lang.IllegalArgumentException
SelectionModel.Multi
deselect in interface SelectionModel.MultiitemIds - 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
nullSelectionModel.Multi.select(Object...)
public boolean deselect(java.util.Collection<?> itemIds)
throws java.lang.IllegalArgumentException
SelectionModel.Multi
deselect in interface SelectionModel.MultiitemIds - 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 nullSelectionModel.Multi.select(Collection)public boolean selectAll()
SelectionModel.Multi
selectAll in interface SelectionModel.Multitrue iff some items were previously not selectedSelectionModel.Multi.deselectAll()public boolean deselectAll()
SelectionModel.Multi
deselectAll in interface SelectionModel.Multitrue iff some items were previously selectedSelectionModel.Multi.selectAll()public java.util.Collection<java.lang.Object> getSelectedRows()
The returned Collection is in order of selection – the item that was first selected will be first in the collection, and so on. Should an item have been selected twice without being deselected in between, it will have remained in its original position.
getSelectedRows in interface SelectionModelgetSelectedRows in class AbstractSelectionModelpublic void reset()
Equivalent to calling deselectAll()
reset in interface SelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||