diff options
author | Aki Väliaho <akivvaliaho@gmail.com> | 2018-03-13 12:00:04 +0000 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-03-13 15:00:04 +0300 |
commit | 0af3b7d717b44b0de1af82143b3c3d3aece587ab (patch) | |
tree | e9d3ee80598abf4eadc757aa138a9936f4467ffd | |
parent | 5deec671ffbefe7eb7388151e5009548179637a7 (diff) | |
download | vaadin-framework-0af3b7d717b44b0de1af82143b3c3d3aece587ab.tar.gz vaadin-framework-0af3b7d717b44b0de1af82143b3c3d3aece587ab.zip |
Fix missing HTML Tooltip ContentMode for Tree items (#10677)
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Tree.java | 18 |
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 |