com.vaadin.ui.

Interface Tree.ItemStyleGenerator

  • All Superinterfaces:

    Serializable

    Enclosing class:

    Tree

    public static interface Tree.ItemStyleGenerator
    extends Serializable

    ItemStyleGenerator can be used to add custom styles to tree items. The CSS class name that will be added to the item content is v-tree-node-[style name].

    • Method Summary

      All Methods
      Modifier and Type Method Description
      String getStyle​(Tree source, Object itemId)

      Called by Tree when an item is painted.

    • Method Detail

      • getStyle

        String getStyle​(Tree source,
                        Object itemId)

        Called by Tree when an item is painted.

        Parameters:

        source - the source Tree

        itemId - 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]