Package com.vaadin.v7.client.connectors
Class AbstractSelectionModelConnector.AbstractSelectionModel
- java.lang.Object
-
- com.vaadin.v7.client.connectors.AbstractSelectionModelConnector.AbstractSelectionModel
-
- All Implemented Interfaces:
SelectionModel<elemental.json.JsonObject>
- Direct Known Subclasses:
MultiSelectionModelConnector.MultiSelectionModel,SingleSelectionModelConnector.SingleSelectionModel
- Enclosing class:
- AbstractSelectionModelConnector<T extends SelectionModel<elemental.json.JsonObject>>
public abstract static class AbstractSelectionModelConnector.AbstractSelectionModel extends Object implements SelectionModel<elemental.json.JsonObject>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.v7.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<elemental.json.JsonObject>getSelectedRows()Returns a Collection containing all selected rows.booleanisSelected(elemental.json.JsonObject row)Return true if the provided row is considered selected under the implementing selection model.voidreset()Resets the SelectionModel to the initial state.voidsetGrid(Grid<elemental.json.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.v7.client.widget.grid.selection.SelectionModel
getSelectionColumnRenderer
-
-
-
-
Method Detail
-
isSelected
public boolean isSelected(elemental.json.JsonObject row)
Description copied from interface:SelectionModelReturn true if the provided row is considered selected under the implementing selection model.- Specified by:
isSelectedin interfaceSelectionModel<elemental.json.JsonObject>- Parameters:
row- row object instance- Returns:
true, if the row given as argument is considered selected.
-
setGrid
public void setGrid(Grid<elemental.json.JsonObject> grid)
Description copied from interface:SelectionModelTells 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:
setGridin interfaceSelectionModel<elemental.json.JsonObject>- Parameters:
grid- aGridinstance;nullwhen removing from Grid
-
reset
public void reset()
Description copied from interface:SelectionModelResets the SelectionModel to the initial state.This method can be called internally, for example, when the attached Grid's data source changes.
- Specified by:
resetin interfaceSelectionModel<elemental.json.JsonObject>
-
getSelectedRows
public Collection<elemental.json.JsonObject> getSelectedRows()
Description copied from interface:SelectionModelReturns a Collection containing all selected rows.- Specified by:
getSelectedRowsin interfaceSelectionModel<elemental.json.JsonObject>- Returns:
- a non-null collection.
-
-