com.vaadin.ui.components.grid.
Interface GridSelectionModel<T>
-
Type Parameters:
T
- the grid bean typeAll Superinterfaces:
ClientConnector
,Connector
,Extension
,SelectionModel<T>
,Serializable
All Known Subinterfaces:
All Known Implementing Classes:
AbstractSelectionModel
,MultiSelectionModelImpl
,NoSelectionModel
,SingleSelectionModelImpl
,Tree.TreeMultiSelectionModel
public interface GridSelectionModel<T> extends SelectionModel<T>, Extension
The server-side interface that controls Grid's selection state. SelectionModel should extend
Grid.AbstractGridExtension
.Since:
8.0
Author:
Vaadin Ltd
See Also:
AbstractSelectionModel
,SingleSelectionModel
,MultiSelectionModel
-
-
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.data.SelectionModel
SelectionModel.Multi<T>, SelectionModel.Single<T>
-
-
Method Summary
All Methods Modifier and Type Method 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.
-
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.data.SelectionModel
addSelectionListener, deselect, deselectAll, getFirstSelectedItem, getSelectedItems, isSelected, select
-
-
-
-
Method Detail
-
remove
void remove()
Removes this selection model from the grid.
Must call super
Extension.remove()
to detach the extension, and fire an selection change event for the selection model (with an empty selection).
-
setUserSelectionAllowed
void setUserSelectionAllowed​(boolean allowed)
Sets whether the user is allowed to change the selection.
The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
Parameters:
allowed
-true
if the user is allowed to change the selection,false
otherwise
-
isUserSelectionAllowed
boolean isUserSelectionAllowed()
Checks if the user is allowed to change the selection.
The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
Returns:
true
if the user is allowed to change the selection,false
otherwise
-
-