|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type parameter corresponding with Grid row typepublic static interface SelectionModel.Single<T>
Selection model that allows a maximum of one row to be selected at any one time.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel |
|---|
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T> |
| Method Summary | |
|---|---|
boolean |
deselect(T row)
Deselects a row. |
T |
getSelectedRow()
Returns the currently selected row. |
boolean |
isDeselectAllowed()
Sets whether it's allowed to deselect the selected row through the UI. |
boolean |
select(T row)
Selects a row. |
void |
setDeselectAllowed(boolean deselectAllowed)
Sets whether it's allowed to deselect the selected row through the UI. |
| Methods inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel |
|---|
getSelectedRows, getSelectionColumnRenderer, isSelected, reset, setGrid |
| Method Detail |
|---|
boolean select(T row)
row - a Grid row object
boolean deselect(T row)
This is a no-op unless row is the currently selected row.
row - a Grid row object
T getSelectedRow()
Grid row object or null, if nothing is selected.void setDeselectAllowed(boolean deselectAllowed)
deselectAllowed - true if the selected row can be deselected
without selecting another row instead; otherwise
false.boolean isDeselectAllowed()
true if deselection is allowed; otherwise
false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||