summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-05-10 14:21:58 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-16 15:35:17 +0300
commit8cbbd608f7681f2ae36dc7931d282f091101cef2 (patch)
tree8c994c7a27a8ada9ec27e2a004290eafd35c21ec /client/src
parentd67f329f16ca1bf85e8af6a0276203b58bd26ed9 (diff)
downloadvaadin-framework-8cbbd608f7681f2ae36dc7931d282f091101cef2.tar.gz
vaadin-framework-8cbbd608f7681f2ae36dc7931d282f091101cef2.zip
Improvements to HierarchyRenderer
- Make HierarchyRenderer.ExpanderState private - Add javadocs to HierarchyRenderer#setStyleNames
Diffstat (limited to 'client/src')
-rw-r--r--client/src/main/java/com/vaadin/client/renderers/HierarchyRenderer.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/client/src/main/java/com/vaadin/client/renderers/HierarchyRenderer.java b/client/src/main/java/com/vaadin/client/renderers/HierarchyRenderer.java
index 5194f77dfb..914656244a 100644
--- a/client/src/main/java/com/vaadin/client/renderers/HierarchyRenderer.java
+++ b/client/src/main/java/com/vaadin/client/renderers/HierarchyRenderer.java
@@ -92,10 +92,17 @@ public class HierarchyRenderer extends ClickableRenderer<Object, Widget> {
setStyleNames(styleName);
}
- public void setStyleNames(String primaryStyleName) {
- nodeStyleName = primaryStyleName + "-node";
- expanderStyleName = primaryStyleName + "-expander";
- cellContentStyleName = primaryStyleName + "-cell-content";
+ /**
+ * Set the style name prefix for the node, expander and cell-content
+ * elements.
+ *
+ * @param styleName
+ * the style name to set
+ */
+ public void setStyleNames(String styleName) {
+ nodeStyleName = styleName + "-node";
+ expanderStyleName = styleName + "-expander";
+ cellContentStyleName = styleName + "-cell-content";
}
@Override
@@ -312,7 +319,7 @@ public class HierarchyRenderer extends ClickableRenderer<Object, Widget> {
}
}
- enum ExpanderState {
+ private enum ExpanderState {
EXPANDED, COLLAPSED, LEAF;
}
}