|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface SelectionModel.Single
A SelectionModel that supports for only single rows to be selected at a time.
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.lang.Object itemId)
Marks an item as deselected. |
java.lang.Object |
getSelectedRow()
Gets the item id of the currently selected item. |
boolean |
select(java.lang.Object itemId)
Marks an item as selected. |
| Methods inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel |
|---|
getSelectedRows, isSelected, reset, setGrid |
| Method Detail |
|---|
boolean select(java.lang.Object itemId)
throws java.lang.IllegalStateException
itemIds - the itemId to mark as selected
true if the selection state changed.
false if the itemId already was selected
java.lang.IllegalStateException - if the selection was illegal. One such reason might be
that the implementation already had an item selected, and
that needs to be explicitly deselected before
re-selecting somethingdeselect(Object)
boolean deselect(java.lang.Object itemId)
throws java.lang.IllegalStateException
itemId - the itemId to remove from being selected
true if the selection state changed.
false if the itemId already was selected
java.lang.IllegalStateException - if the deselection was illegal. One such reason might be
that the implementation enforces that an item is always
selectedselect(Object)java.lang.Object getSelectedRow()
null if nothing is selected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||