public static interface Grid.SelectionModel.None extends Grid.SelectionModel
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.
Grid.SelectionModel.HasUserSelectionAllowed, Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
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.
|
reset, 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
boolean isSelected(Object itemId)
isSelected
in interface Grid.SelectionModel
itemId
- the item id to check forfalse
.Collection<Object> getSelectedRows()
getSelectedRows
in interface Grid.SelectionModel
Copyright © 2019 Vaadin Ltd. All rights reserved.