Package com.vaadin.featurepack.ui
Interface FGrid.SelectionModel.HasUserSelectionAllowed
- All Superinterfaces:
FGrid.SelectionModel,Serializable
- All Known Implementing Classes:
FGrid.MultiSelectionModel,FGrid.SingleSelectionModel
- Enclosing interface:
FGrid.SelectionModel
Interface implemented by selection models which support disabling
client side selection while still allowing programmatic selection on
the server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.featurepack.ui.FGrid.SelectionModel
FGrid.SelectionModel.HasUserSelectionAllowed, FGrid.SelectionModel.Multi, FGrid.SelectionModel.None, FGrid.SelectionModel.Single -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the user is allowed to change the selection.voidsetUserSelectionAllowed(boolean userSelectionAllowed) Sets whether the user is allowed to change the selection.Methods inherited from interface com.vaadin.featurepack.ui.FGrid.SelectionModel
getSelectedRows, isSelected, reset, setGrid
-
Method Details
-
isUserSelectionAllowed
boolean isUserSelectionAllowed()Checks if the user is allowed to change the selection.- Returns:
trueif the user is allowed to change the selection,falseotherwise
-
setUserSelectionAllowed
void setUserSelectionAllowed(boolean userSelectionAllowed) Sets whether the user is allowed to change the selection.- Parameters:
userSelectionAllowed-trueif the user is allowed to change the selection,falseotherwise
-