diff options
author | Artur <artur@vaadin.com> | 2017-01-30 13:47:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 13:47:55 +0200 |
commit | 131e4f34bddf99d61a76fcd49890490c78c3efa8 (patch) | |
tree | 1276e94ddbec6a8fc612bedf87835cd366e5f0a5 /shared | |
parent | 870a4d9ab386de41b0c5e344d16ebfd9c13b2951 (diff) | |
download | vaadin-framework-131e4f34bddf99d61a76fcd49890490c78c3efa8.tar.gz vaadin-framework-131e4f34bddf99d61a76fcd49890490c78c3efa8.zip |
Make it possible to disallow user selection in Grid (#8144)
Fixes #7880
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/selection/MultiSelectionModelState.java | 1 | ||||
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/selection/SingleSelectionModelState.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/selection/MultiSelectionModelState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/selection/MultiSelectionModelState.java index 35da1d1e0b..3fd685c98e 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/selection/MultiSelectionModelState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/selection/MultiSelectionModelState.java @@ -27,5 +27,6 @@ public class MultiSelectionModelState extends SharedState { /* Select All -checkbox status */ public boolean allSelected; + public boolean userSelectionAllowed = true; } diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/selection/SingleSelectionModelState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/selection/SingleSelectionModelState.java index de06dfc61a..6355ddec7e 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/selection/SingleSelectionModelState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/selection/SingleSelectionModelState.java @@ -27,4 +27,5 @@ public class SingleSelectionModelState extends SharedState { /* Allow deselecting rows */ public boolean deselectAllowed = true; + public boolean userSelectionAllowed = true; } |