|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.components.grid.selection.NoSelectionModel
public class NoSelectionModel
A default implementation for a SelectionModel.None
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel |
|---|
SelectionModel.Multi, SelectionModel.None, SelectionModel.Single |
| Constructor Summary | |
|---|---|
NoSelectionModel()
|
|
| Method Summary | |
|---|---|
java.util.Collection<java.lang.Object> |
getSelectedRows()
Returns a collection of all the currently selected itemIds. |
boolean |
isSelected(java.lang.Object itemId)
Checks whether an item is selected or not. |
void |
reset()
Semantically resets the selection model. |
void |
setGrid(Grid grid)
Injects the current Grid instance into the SelectionModel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoSelectionModel()
| Method Detail |
|---|
public void setGrid(Grid grid)
SelectionModelGrid instance into the SelectionModel.
Note: This method should not be called manually.
setGrid in interface SelectionModelgrid - the Grid in which the SelectionModel currently is, or
null when a selection model is being detached
from a Grid.public boolean isSelected(java.lang.Object itemId)
SelectionModel.None
isSelected in interface SelectionModelisSelected in interface SelectionModel.NoneitemId - the item id to check for
false.public java.util.Collection<java.lang.Object> getSelectedRows()
SelectionModel.None
getSelectedRows in interface SelectionModelgetSelectedRows in interface SelectionModel.Nonepublic void reset()
Effectively a no-op.
reset in interface SelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||