com.vaadin.ui.components.grid.selection
Interface SelectionModel.None

All Superinterfaces:
SelectionModel, java.io.Serializable
All Known Implementing Classes:
NoSelectionModel
Enclosing interface:
SelectionModel

public static interface SelectionModel.None
extends SelectionModel

A SelectionModel that does not allow for rows to be selected.

This interface has a contract of having the same behavior, no matter how the selection model is interacted with. In other words, if the developer is unable to select something programmatically, it is not allowed for the end-user to select anything, either.


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

Method Detail

isSelected

boolean isSelected(java.lang.Object itemId)
Checks whether an item is selected or not.

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

getSelectedRows

java.util.Collection<java.lang.Object> getSelectedRows()
Returns a collection of all the currently selected itemIds.

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


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