com.vaadin.ui
Class Grid.NoSelectionModel

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.server.AbstractExtension
          extended by com.vaadin.ui.Grid.AbstractGridExtension
              extended by com.vaadin.ui.Grid.AbstractSelectionModel
                  extended by com.vaadin.ui.Grid.NoSelectionModel
All Implemented Interfaces:
MethodEventSource, ClientConnector, DataGenerator, Extension, com.vaadin.shared.Connector, Grid.SelectionModel, Grid.SelectionModel.None, java.io.Serializable
Enclosing class:
Grid

public static class Grid.NoSelectionModel
extends Grid.AbstractSelectionModel
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
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
 
Field Summary
 
Fields inherited from class com.vaadin.ui.Grid.AbstractSelectionModel
selection
 
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.
 
Methods inherited from class com.vaadin.ui.Grid.AbstractSelectionModel
checkItemIdExists, checkItemIdsExist, destroyData, fireSelectionEvent, generateData, getItemId, setGrid
 
Methods inherited from class com.vaadin.ui.Grid.AbstractGridExtension
addComponentToGrid, extend, getColumn, getParentGrid, refreshRow, remove, removeComponentFromGrid
 
Methods inherited from class com.vaadin.server.AbstractExtension
getParent, getSupportedParentType, setParent
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Grid.SelectionModel
setGrid
 
Methods inherited from interface com.vaadin.server.Extension
remove, setParent
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

Grid.NoSelectionModel

public Grid.NoSelectionModel()
Method Detail

isSelected

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

Specified by:
isSelected in interface Grid.SelectionModel
Specified by:
isSelected in interface Grid.SelectionModel.None
Overrides:
isSelected in class Grid.AbstractSelectionModel
Parameters:
itemId - the item id to check for
Returns:
true iff the item is selected

getSelectedRows

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

Specified by:
getSelectedRows in interface Grid.SelectionModel
Specified by:
getSelectedRows in interface Grid.SelectionModel.None
Overrides:
getSelectedRows in class Grid.AbstractSelectionModel
Returns:
a collection of all the currently selected itemIds

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.