public abstract static class AbstractSelectionModelConnector.AbstractSelectionModel extends Object implements SelectionModel<elemental.json.JsonObject>
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T>| Constructor and Description |
|---|
AbstractSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
Collection<elemental.json.JsonObject> |
getSelectedRows()
Returns a Collection containing all selected rows.
|
boolean |
isSelected(elemental.json.JsonObject row)
Return true if the provided row is considered selected under the
implementing selection model.
|
void |
reset()
Resets the SelectionModel to the initial state.
|
void |
setGrid(Grid<elemental.json.JsonObject> grid)
Tells this SelectionModel which Grid it belongs to.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelectionColumnRendererpublic boolean isSelected(elemental.json.JsonObject row)
SelectionModelisSelected in interface SelectionModel<elemental.json.JsonObject>row - row object instancetrue, if the row given as argument is considered
selected.public void setGrid(Grid<elemental.json.JsonObject> grid)
SelectionModelImplementations are free to have this be a no-op. This method is called internally by Grid.
setGrid in interface SelectionModel<elemental.json.JsonObject>grid - a Grid instance; null when removing from
Gridpublic void reset()
SelectionModelThis method can be called internally, for example, when the attached Grid's data source changes.
reset in interface SelectionModel<elemental.json.JsonObject>public Collection<elemental.json.JsonObject> getSelectedRows()
SelectionModelgetSelectedRows in interface SelectionModel<elemental.json.JsonObject>Copyright © 2016 Vaadin Ltd. All rights reserved.