From d9ce1e8fb70e9cd6937a3174eeea3a244e52b770 Mon Sep 17 00:00:00 2001 From: Aleksi Hietanen Date: Thu, 11 May 2017 08:27:29 +0300 Subject: Rename TreeGridCommunicationConstants to HierarchicalDataCommunicatorConstants --- .../HierarchicalDataCommunicatorConstants.java | 34 ++++++++++++++++++++++ .../treegrid/TreeGridCommunicationConstants.java | 33 --------------------- 2 files changed, 34 insertions(+), 33 deletions(-) create mode 100644 shared/src/main/java/com/vaadin/shared/ui/treegrid/HierarchicalDataCommunicatorConstants.java delete mode 100644 shared/src/main/java/com/vaadin/shared/ui/treegrid/TreeGridCommunicationConstants.java (limited to 'shared') diff --git a/shared/src/main/java/com/vaadin/shared/ui/treegrid/HierarchicalDataCommunicatorConstants.java b/shared/src/main/java/com/vaadin/shared/ui/treegrid/HierarchicalDataCommunicatorConstants.java new file mode 100644 index 0000000000..913aab64b6 --- /dev/null +++ b/shared/src/main/java/com/vaadin/shared/ui/treegrid/HierarchicalDataCommunicatorConstants.java @@ -0,0 +1,34 @@ +/* + * 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.treegrid; + +import java.io.Serializable; + +/** + * Set of contants used in data communication of hierarchical data. These are + * commonly used JsonObject keys which are considered to be reserved for + * internal use. + * + * @author Vaadin Ltd + * @since 8.1 + */ +public class HierarchicalDataCommunicatorConstants implements Serializable { + public static final String ROW_HIERARCHY_DESCRIPTION = "rhd"; + public static final String ROW_DEPTH = "d"; + public static final String ROW_COLLAPSED = "c"; + public static final String ROW_LEAF = "l"; + public static final String ROW_COLLAPSE_ALLOWED = "ca"; +} diff --git a/shared/src/main/java/com/vaadin/shared/ui/treegrid/TreeGridCommunicationConstants.java b/shared/src/main/java/com/vaadin/shared/ui/treegrid/TreeGridCommunicationConstants.java deleted file mode 100644 index 0e678aeb3a..0000000000 --- a/shared/src/main/java/com/vaadin/shared/ui/treegrid/TreeGridCommunicationConstants.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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.treegrid; - -import java.io.Serializable; - -/** - * Set of contants used by TreeGrid. These are commonly used JsonObject keys - * which are considered to be reserved for internal use. - * - * @author Vaadin Ltd - * @since 8.1 - */ -public class TreeGridCommunicationConstants implements Serializable { - public static final String ROW_HIERARCHY_DESCRIPTION = "rhd"; - public static final String ROW_DEPTH = "d"; - public static final String ROW_COLLAPSED = "c"; - public static final String ROW_LEAF = "l"; - public static final String ROW_COLLAPSE_ALLOWED = "ca"; -} -- cgit v1.2.3