com.vaadin.ui
Class Grid.NoSelectionModel

java.lang.Object
  extended by com.vaadin.ui.Grid.NoSelectionModel
All Implemented Interfaces:
Grid.SelectionModel, Grid.SelectionModel.None, java.io.Serializable
Enclosing class:
Grid

public static class Grid.NoSelectionModel
extends java.lang.Object
implements Grid.SelectionModel.None

A default implementation for a Grid.SelectionModel.None

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Grid.SelectionModel
Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single
 
Constructor Summary
Grid.NoSelectionModel()
           
 
Method Summary
 java.util.Collection<java.lang.Object> getSelectedRows()
          Returns a collection of all the currently selected itemIds.
 boolean isSelected(java.lang.Object itemId)
          Checks whether an item is selected or not.
 void reset()
          Semantically resets the selection model.
 void setGrid(Grid grid)
          Injects the current Grid instance into the SelectionModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid.NoSelectionModel

public Grid.NoSelectionModel()
Method Detail

setGrid

public void setGrid(Grid grid)
Description copied from interface: Grid.SelectionModel
Injects the current Grid instance into the SelectionModel.

Note: This method should not be called manually.

Specified by:
setGrid in interface Grid.SelectionModel
Parameters:
grid - the Grid in which the SelectionModel currently is, or null when a selection model is being detached from a Grid.

isSelected

public boolean isSelected(java.lang.Object itemId)
Description copied from interface: Grid.SelectionModel.None
Checks whether an item is selected or not.

Specified by:
isSelected in interface Grid.SelectionModel
Specified by:
isSelected in interface Grid.SelectionModel.None
Parameters:
itemId - the item id to check for
Returns:
always false.

getSelectedRows

public java.util.Collection<java.lang.Object> getSelectedRows()
Description copied from interface: Grid.SelectionModel.None
Returns a collection of all the currently selected itemIds.

Specified by:
getSelectedRows in interface Grid.SelectionModel
Specified by:
getSelectedRows in interface Grid.SelectionModel.None
Returns:
always an empty collection.

reset

public void reset()
Semantically resets the selection model.

Effectively a no-op.

Specified by:
reset in interface Grid.SelectionModel


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