Package com.vaadin.ui
Class Grid.NoSelectionModel
-
- All Implemented Interfaces:
MethodEventSource
,ClientConnector
,DataGenerator
,Extension
,Connector
,Grid.SelectionModel
,Grid.SelectionModel.None
,Serializable
- Enclosing class:
- Grid
public static class Grid.NoSelectionModel extends Grid.AbstractSelectionModel implements Grid.SelectionModel.None
A default implementation for aGrid.SelectionModel.None
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Grid.SelectionModel
Grid.SelectionModel.HasUserSelectionAllowed, Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single
-
-
Field Summary
-
Fields inherited from class com.vaadin.ui.Grid.AbstractSelectionModel
selection
-
-
Constructor Summary
Constructors Constructor Description NoSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Object>
getSelectedRows()
Returns a collection of all the currently selected itemIds.boolean
isSelected(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.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
-
Methods inherited from interface com.vaadin.ui.Grid.SelectionModel
setGrid
-
-
-
-
Method Detail
-
isSelected
public boolean isSelected(Object itemId)
Description copied from interface:Grid.SelectionModel
Checks whether an item is selected or not.- Specified by:
isSelected
in interfaceGrid.SelectionModel
- Specified by:
isSelected
in interfaceGrid.SelectionModel.None
- Overrides:
isSelected
in classGrid.AbstractSelectionModel
- Parameters:
itemId
- the item id to check for- Returns:
true
iff the item is selected
-
getSelectedRows
public Collection<Object> getSelectedRows()
Description copied from interface:Grid.SelectionModel
Returns a collection of all the currently selected itemIds.- Specified by:
getSelectedRows
in interfaceGrid.SelectionModel
- Specified by:
getSelectedRows
in interfaceGrid.SelectionModel.None
- Overrides:
getSelectedRows
in classGrid.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 interfaceGrid.SelectionModel
-
-