T
- the grid bean typepublic interface GridSelectionModel<T> extends SelectionModel<T>, Extension
Grid.AbstractGridExtension
.AbstractSelectionModel
,
SingleSelectionModel
,
MultiSelectionModel
SelectionModel.Multi<T>, SelectionModel.Single<T>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
boolean |
isUserSelectionAllowed()
Checks if the user is allowed to change the selection.
|
void |
remove()
Removes this selection model from the grid.
|
void |
setUserSelectionAllowed(boolean allowed)
Sets whether the user is allowed to change the selection.
|
addSelectionListener, deselect, deselectAll, getFirstSelectedItem, getSelectedItems, isSelected, select
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
void remove()
Must call super Extension.remove()
to detach the extension, and
fire an selection change event for the selection model (with an empty
selection).
void setUserSelectionAllowed(boolean allowed)
The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
allowed
- true
if the user is allowed to change the
selection, false
otherwiseboolean isUserSelectionAllowed()
The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
true
if the user is allowed to change the selection,
false
otherwiseCopyright © 2019 Vaadin Ltd. All rights reserved.