Interface TreeTable<E>

Type Parameters:
E - row item type
All Superinterfaces:
ActionsHolder, Component, Component.BelongToFrame, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, HasButtonsPanel, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasMinSize, HasPagination, HasSubParts, HasTablePresentations, ListComponent<E>, LookupComponent<E>, Table<E>
All Known Implementing Classes:
TreeTableImpl

@StudioComponent(caption="TreeTable", category="Components", xmlElement="treeTable", icon="io/jmix/ui/icon/component/treeTable.svg", canvasBehaviour=TABLE, documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/tree-table.html") public interface TreeTable<E> extends Table<E>
TreeTable extends the Table component so that it can also visualize a hierarchy of its Items in a similar manner that Tree does. The tree hierarchy is always displayed in the first actual column of the TreeTable.
  • Field Details

  • Method Details

    • of

      static <T> org.springframework.core.ParameterizedTypeReference<TreeTable<T>> of(Class<T> itemClass)
    • expandAll

      void expandAll()
    • expand

      void expand(Object itemId)
    • collapseAll

      void collapseAll()
    • collapse

      void collapse(Object itemId)
    • expandUpTo

      void expandUpTo(int level)
      Expand tree table including specified level
      Parameters:
      level - level of TreeTable nodes to expand, if passed level = 1 then root items will be expanded
      Throws:
      IllegalArgumentException - if level < 1
    • getLevel

      int getLevel(Object itemId)
    • isExpanded

      boolean isExpanded(Object itemId)