com.vaadin.client.connectors
Class AbstractSelectionModelConnector.AbstractSelectionModel

java.lang.Object
  extended by com.vaadin.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 java.lang.Object
implements SelectionModel<elemental.json.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
AbstractSelectionModelConnector.AbstractSelectionModel()
           
 
Method Summary
 java.util.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.
 
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
 

Constructor Detail

AbstractSelectionModelConnector.AbstractSelectionModel

public AbstractSelectionModelConnector.AbstractSelectionModel()
Method Detail

isSelected

public boolean isSelected(elemental.json.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 interface SelectionModel<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: 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 interface SelectionModel<elemental.json.JsonObject>
Parameters:
grid - a Grid 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 interface SelectionModel<elemental.json.JsonObject>

getSelectedRows

public java.util.Collection<elemental.json.JsonObject> getSelectedRows()
Description copied from interface: SelectionModel
Returns a Collection containing all selected rows.

Specified by:
getSelectedRows in interface SelectionModel<elemental.json.JsonObject>
Returns:
a non-null collection.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.