com.vaadin.ui
Interface Tree.ItemStyleGenerator
- All Superinterfaces:
- java.io.Serializable
- Enclosing class:
- Tree
public static interface Tree.ItemStyleGenerator
- extends java.io.Serializable
ItemStyleGenerator can be used to add custom styles to tree items. The
CSS class name that will be added to the cell content is
v-tree-node-[style name].
Method Summary |
java.lang.String |
getStyle(Tree source,
java.lang.Object itemId)
Called by Tree when an item is painted. |
getStyle
java.lang.String getStyle(Tree source,
java.lang.Object itemId)
- Called by Tree when an item is painted.
- Parameters:
source
- the source TreeitemId
- The itemId of the item to be painted
- Returns:
- The style name to add to this item. (the CSS class name will
be v-tree-node-[style name]
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.