|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.Grid.AbstractSelectionModel
com.vaadin.ui.Grid.SingleSelectionModel
public static class Grid.SingleSelectionModel
A default implementation of a Grid.SelectionModel.Single
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.ui.Grid.SelectionModel |
|---|
Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single |
| Field Summary |
|---|
| Fields inherited from class com.vaadin.ui.Grid.AbstractSelectionModel |
|---|
grid, selection |
| Constructor Summary | |
|---|---|
Grid.SingleSelectionModel()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getSelectedRow()
Gets the item id of the currently selected item. |
boolean |
isDeselectAllowed()
Sets whether it's allowed to deselect the selected row through the UI. |
void |
reset()
Resets the selection state. |
boolean |
select(java.lang.Object itemId)
Marks an item as selected. |
void |
setDeselectAllowed(boolean deselectAllowed)
Sets whether it's allowed to deselect the selected row through the UI. |
| Methods inherited from class com.vaadin.ui.Grid.AbstractSelectionModel |
|---|
checkItemIdExists, checkItemIdsExist, fireSelectionEvent, 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.Grid.SelectionModel |
|---|
getSelectedRows, isSelected, setGrid |
| Constructor Detail |
|---|
public Grid.SingleSelectionModel()
| Method Detail |
|---|
public boolean select(java.lang.Object itemId)
Grid.SelectionModel.Single
select in interface Grid.SelectionModel.Singletrue if the selection state changed.
false if the itemId already was selectedpublic java.lang.Object getSelectedRow()
Grid.SelectionModel.Single
getSelectedRow in interface Grid.SelectionModel.Singlenull if nothing is selectedpublic void reset()
If an item is selected, it will become deselected.
reset in interface Grid.SelectionModelpublic void setDeselectAllowed(boolean deselectAllowed)
Grid.SelectionModel.Single
setDeselectAllowed in interface Grid.SelectionModel.SingledeselectAllowed - true if the selected row can be
deselected without selecting another row instead;
otherwise false.public boolean isDeselectAllowed()
Grid.SelectionModel.Single
isDeselectAllowed in interface Grid.SelectionModel.Singletrue if deselection is allowed; otherwise
false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||