public static class Grid.NoSelectionModel extends Grid.AbstractSelectionModel implements Grid.SelectionModel.None
Grid.SelectionModel.None
Grid.SelectionModel.HasUserSelectionAllowed, Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
selection
Constructor and Description |
---|
NoSelectionModel() |
Modifier and Type | Method and 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.
|
checkItemIdExists, checkItemIdsExist, destroyData, fireSelectionEvent, generateData, getItemId, setGrid
addComponentToGrid, extend, getColumn, getParentGrid, refreshRow, remove, removeComponentFromGrid
getParent, getSupportedParentType, setParent
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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setGrid
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
public boolean isSelected(Object itemId)
Grid.SelectionModel
isSelected
in interface Grid.SelectionModel
isSelected
in interface Grid.SelectionModel.None
isSelected
in class Grid.AbstractSelectionModel
itemId
- the item id to check fortrue
iff the item is selectedpublic Collection<Object> getSelectedRows()
Grid.SelectionModel
getSelectedRows
in interface Grid.SelectionModel
getSelectedRows
in interface Grid.SelectionModel.None
getSelectedRows
in class Grid.AbstractSelectionModel
public void reset()
Effectively a no-op.
reset
in interface Grid.SelectionModel
Copyright © 2019 Vaadin Ltd. All rights reserved.