aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAki Väliaho <akivvaliaho@gmail.com>2018-03-13 12:00:04 +0000
committerIlia Motornyi <elmot@vaadin.com>2018-03-13 15:00:04 +0300
commit0af3b7d717b44b0de1af82143b3c3d3aece587ab (patch)
treee9d3ee80598abf4eadc757aa138a9936f4467ffd /server
parent5deec671ffbefe7eb7388151e5009548179637a7 (diff)
downloadvaadin-framework-0af3b7d717b44b0de1af82143b3c3d3aece587ab.tar.gz
vaadin-framework-0af3b7d717b44b0de1af82143b3c3d3aece587ab.zip
Fix missing HTML Tooltip ContentMode for Tree items (#10677)
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/Tree.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Tree.java b/server/src/main/java/com/vaadin/ui/Tree.java
index bebe6972b5..f19f140a99 100644
--- a/server/src/main/java/com/vaadin/ui/Tree.java
+++ b/server/src/main/java/com/vaadin/ui/Tree.java
@@ -673,6 +673,24 @@ public class Tree<T> extends Composite
}
/**
+ * Sets the description generator that is used for generating HTML tooltip
+ * descriptions for items.
+ *
+ * @param descriptionGenerator
+ * the item description generator to set, or <code>null</code> to
+ * remove a previously set generator
+ * @param contentMode
+ * how client should interpret textual values
+ *
+ * @since
+ */
+ public void setItemDescriptionGenerator(
+ DescriptionGenerator<T> descriptionGenerator,
+ ContentMode contentMode) {
+ treeGrid.setDescriptionGenerator(descriptionGenerator, contentMode);
+ }
+
+ /**
* Gets the item caption generator.
*
* @return the item caption generator