summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2016-11-21 12:54:17 +0200
committerPekka Hyvönen <pekka@vaadin.com>2016-11-30 11:49:04 +0200
commitc3ad14183d72ed48088b7a5bb528e896a9797e32 (patch)
tree8bbc0b880f819b188f5eea42a6469a08f8952864 /shared/src
parent373bd63dcd2ed659d953ad591c4099b658aec8f6 (diff)
downloadvaadin-framework-c3ad14183d72ed48088b7a5bb528e896a9797e32.tar.gz
vaadin-framework-c3ad14183d72ed48088b7a5bb528e896a9797e32.zip
Enable select all checkbox for MultiSelection Grid.
It is by default shown only if used data provider is in-memory. Can be configured to be explicitly shown or hidden. Change-Id: I50569d915604c3722a22e14b7628663d5680ed83
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/MultiSelectionModelState.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/MultiSelectionModelState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/MultiSelectionModelState.java
new file mode 100644
index 0000000000..5d2a1c6094
--- /dev/null
+++ b/shared/src/main/java/com/vaadin/shared/ui/grid/MultiSelectionModelState.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui.grid;
+
+import com.vaadin.shared.communication.SharedState;
+
+/**
+ * SharedState object for MultiSelectionModel.
+ *
+ * @since 8.0
+ * @author Vaadin Ltd
+ */
+public class MultiSelectionModelState extends SharedState {
+
+ /** Is the select all checkbox visible. */
+ public boolean selectAllCheckBoxVisible;
+ /** Select All -checkbox status. */
+ public boolean allSelected;
+
+}