summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-05-11 08:27:29 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-16 15:35:17 +0300
commitd9ce1e8fb70e9cd6937a3174eeea3a244e52b770 (patch)
tree23d4a6fbc38dfed098226796580a7fbe3473ec20 /server
parent2e879d11f8b052bd95a84ffbeac47f65afff3a89 (diff)
downloadvaadin-framework-d9ce1e8fb70e9cd6937a3174eeea3a244e52b770.tar.gz
vaadin-framework-d9ce1e8fb70e9cd6937a3174eeea3a244e52b770.zip
Rename TreeGridCommunicationConstants to HierarchicalDataCommunicatorConstants
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java
index 4a8ae62772..9ac6feaeb4 100644
--- a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java
@@ -34,7 +34,7 @@ import com.vaadin.server.SerializableConsumer;
import com.vaadin.server.SerializablePredicate;
import com.vaadin.shared.Range;
import com.vaadin.shared.extension.datacommunicator.HierarchicalDataCommunicatorState;
-import com.vaadin.shared.ui.treegrid.TreeGridCommunicationConstants;
+import com.vaadin.shared.ui.treegrid.HierarchicalDataCommunicatorConstants;
import elemental.json.Json;
import elemental.json.JsonArray;
@@ -226,24 +226,24 @@ public class HierarchicalDataCommunicator<T> extends DataCommunicator<T> {
JsonObject hierarchyData = Json.createObject();
if (depth != -1) {
- hierarchyData.put(TreeGridCommunicationConstants.ROW_DEPTH, depth);
+ hierarchyData.put(HierarchicalDataCommunicatorConstants.ROW_DEPTH, depth);
}
boolean isLeaf = !getDataProvider().hasChildren(item);
if (isLeaf) {
- hierarchyData.put(TreeGridCommunicationConstants.ROW_LEAF, true);
+ hierarchyData.put(HierarchicalDataCommunicatorConstants.ROW_LEAF, true);
} else {
String key = getKeyMapper().key(item);
- hierarchyData.put(TreeGridCommunicationConstants.ROW_COLLAPSED,
+ hierarchyData.put(HierarchicalDataCommunicatorConstants.ROW_COLLAPSED,
mapper.isCollapsed(key));
- hierarchyData.put(TreeGridCommunicationConstants.ROW_LEAF, false);
+ hierarchyData.put(HierarchicalDataCommunicatorConstants.ROW_LEAF, false);
hierarchyData.put(
- TreeGridCommunicationConstants.ROW_COLLAPSE_ALLOWED,
+ HierarchicalDataCommunicatorConstants.ROW_COLLAPSE_ALLOWED,
itemCollapseAllowedProvider.test(item));
}
// add hierarchy information to row as metadata
- dataObject.put(TreeGridCommunicationConstants.ROW_HIERARCHY_DESCRIPTION,
+ dataObject.put(HierarchicalDataCommunicatorConstants.ROW_HIERARCHY_DESCRIPTION,
hierarchyData);
return dataObject;