From c3ad14183d72ed48088b7a5bb528e896a9797e32 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Mon, 21 Nov 2016 12:54:17 +0200 Subject: 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 --- .../shared/ui/grid/MultiSelectionModelState.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 shared/src/main/java/com/vaadin/shared/ui/grid/MultiSelectionModelState.java (limited to 'shared') 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; + +} -- cgit v1.2.3