T - type parameter corresponding with Grid row typepublic static interface SelectionModel.Single<T> extends SelectionModel<T>
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T>| Modifier and Type | Method and Description |
|---|---|
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.
|
getSelectedRows, getSelectionColumnRenderer, isSelected, reset, setGridboolean select(T row)
row - a Grid row objectboolean deselect(T row)
This is a no-op unless row is the currently selected row.
row - a Grid row objectT 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
falseCopyright © 2016 Vaadin Ltd. All rights reserved.