Package com.vaadin.client.connectors
Class AbstractSelectionModelConnector.AbstractSelectionModel
- java.lang.Object
-
- com.vaadin.client.connectors.AbstractSelectionModelConnector.AbstractSelectionModel
-
- All Implemented Interfaces:
SelectionModel<JsonObject>
- Direct Known Subclasses:
MultiSelectionModelConnector.MultiSelectionModel
,SingleSelectionModelConnector.SingleSelectionModel
- Enclosing class:
- AbstractSelectionModelConnector<T extends SelectionModel<JsonObject>>
public abstract static class AbstractSelectionModelConnector.AbstractSelectionModel extends Object implements SelectionModel<JsonObject>
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<JsonObject>
getSelectedRows()
Returns a Collection containing all selected rows.boolean
isSelected(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<JsonObject> grid)
Tells this SelectionModel which Grid it belongs to.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel
getSelectionColumnRenderer
-
-
-
-
Method Detail
-
isSelected
public boolean isSelected(JsonObject row)
Description copied from interface:SelectionModel
Return true if the provided row is considered selected under the implementing selection model.- Specified by:
isSelected
in interfaceSelectionModel<JsonObject>
- Parameters:
row
- row object instance- Returns:
true
, if the row given as argument is considered selected.
-
setGrid
public void setGrid(Grid<JsonObject> grid)
Description copied from interface:SelectionModel
Tells this SelectionModel which Grid it belongs to.Implementations are free to have this be a no-op. This method is called internally by Grid.
- Specified by:
setGrid
in interfaceSelectionModel<JsonObject>
- Parameters:
grid
- aGrid
instance;null
when removing from Grid
-
reset
public void reset()
Description copied from interface:SelectionModel
Resets the SelectionModel to the initial state.This method can be called internally, for example, when the attached Grid's data source changes.
- Specified by:
reset
in interfaceSelectionModel<JsonObject>
-
getSelectedRows
public Collection<JsonObject> getSelectedRows()
Description copied from interface:SelectionModel
Returns a Collection containing all selected rows.- Specified by:
getSelectedRows
in interfaceSelectionModel<JsonObject>
- Returns:
- a non-null collection.
-
-