summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
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;