Package com.vaadin.ui
Interface Grid.SelectionModel.HasUserSelectionAllowed
-
- All Superinterfaces:
ClientConnector
,Connector
,Extension
,Grid.SelectionModel
,Serializable
- All Known Implementing Classes:
Grid.MultiSelectionModel
,Grid.SingleSelectionModel
- Enclosing interface:
- Grid.SelectionModel
public static interface Grid.SelectionModel.HasUserSelectionAllowed extends Grid.SelectionModel
Interface implemented by selection models which support disabling client side selection while still allowing programmatic selection on the server.- Since:
- 7.7.7
-
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isUserSelectionAllowed()
Checks if the user is allowed to change the selection.void
setUserSelectionAllowed​(boolean userSelectionAllowed)
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.ui.Grid.SelectionModel
getSelectedRows, isSelected, reset, setGrid
-
-
-
-
Method Detail
-
isUserSelectionAllowed
boolean isUserSelectionAllowed()
Checks if the user is allowed to change the selection.- Returns:
true
if the user is allowed to change the selection,false
otherwise
-
setUserSelectionAllowed
void setUserSelectionAllowed​(boolean userSelectionAllowed)
Sets whether the user is allowed to change the selection.- Parameters:
userSelectionAllowed
-true
if the user is allowed to change the selection,false
otherwise
-
-