|
||||||||||
| 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.SingleSelectionModel
public class SingleSelectionModel
A default implementation of a SelectionModel.Single
| 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 | |
|---|---|
SingleSelectionModel()
|
|
| 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. |
void |
reset()
Resets the selection state. |
boolean |
select(java.lang.Object itemId)
Marks an item as selected. |
| Methods inherited from class com.vaadin.ui.components.grid.selection.AbstractSelectionModel |
|---|
fireSelectionChangeEvent, getSelectedRows, 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 |
|---|
getSelectedRows, isSelected, setGrid |
| Constructor Detail |
|---|
public SingleSelectionModel()
| Method Detail |
|---|
public boolean select(java.lang.Object itemId)
SelectionModel.Single
select in interface SelectionModel.Singletrue if the selection state changed.
false if the itemId already was selectedSelectionModel.Single.deselect(Object)public boolean deselect(java.lang.Object itemId)
SelectionModel.Single
deselect in interface SelectionModel.SingleitemId - the itemId to remove from being selected
true if the selection state changed.
false if the itemId already was selectedSelectionModel.Single.select(Object)public java.lang.Object getSelectedRow()
SelectionModel.Single
getSelectedRow in interface SelectionModel.Singlenull if nothing is selectedpublic void reset()
If an item is selected, it will become deselected.
reset in interface SelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||