Interface ITree

All Superinterfaces:
IComponent<ITree>, IHasAttributes<ITree>, IHasId<ITree>

public interface ITree extends IComponent<ITree>, IHasAttributes<ITree>
  • Method Details

    • item

      ITree item(Consumer<ISection> content, Consumer<ITreeItem> item)
      Add a child/item to the tree.
      Parameters:
      content - the content of the item
      Returns:
      the tree object
    • item

      default ITree item(IString label, Consumer<ITreeItem> item)
      Add a child/item to the tree.
      Parameters:
      label - a text label for the item
      Returns:
      the tree object
    • item

      default ITree item(String label, Consumer<ITreeItem> item)
      Add a child/item to the tree.
      Parameters:
      label - a text label for the item, will be wrapped in I18N
      Returns:
      the tree object
    • item

      default ITree item(Consumer<ISection> content)
      Add a child/item to the tree.
      Parameters:
      content - the content of the item
      Returns:
      the tree object
    • item

      default ITree item(IString label)
      Add a child/item to the tree.
      Parameters:
      label - a text label for the item
      Returns:
      the tree object
    • item

      default ITree item(String label)
      Add a child/item to the tree.
      Parameters:
      label - a text label for the item, will be wrapped in I18N
      Returns:
      the tree object