com.vaadin.ui.components.grid.selection
Class NoSelectionModel

java.lang.Object
  extended by com.vaadin.ui.components.grid.selection.NoSelectionModel
All Implemented Interfaces:
SelectionModel, SelectionModel.None, java.io.Serializable

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

A default implementation for a SelectionModel.None

Since:
7.4
Author:
Vaadin Ltd
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.ui.components.grid.selection.SelectionModel
SelectionModel.Multi, SelectionModel.None, SelectionModel.Single
 
Constructor Summary
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

NoSelectionModel

public NoSelectionModel()
Method Detail

setGrid

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

Note: This method should not be called manually.

Specified by:
setGrid in interface 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: SelectionModel.None
Checks whether an item is selected or not.

Specified by:
isSelected in interface SelectionModel
Specified by:
isSelected in interface 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: SelectionModel.None
Returns a collection of all the currently selected itemIds.

Specified by:
getSelectedRows in interface SelectionModel
Specified by:
getSelectedRows in interface 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 SelectionModel


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