public class Tree extends OWWidget
Widget that represent the thinlet tree.
  • Field Details

    • EMPTY_NODES

      protected static final Node[] EMPTY_NODES
  • Constructor Details

  • Method Details

    • getSelection

      public EnumSelection getSelection()
    • setSelection

      public void setSelection(@NotNull @NotNull EnumSelection value)
    • isLine

      public boolean isLine()
    • setLine

      public void setLine(boolean value)
    • isAngle

      public boolean isAngle()
    • setAngle

      public void setAngle(boolean value)
    • defineAction

      public void defineAction(Method method)
    • definePerform

      public void definePerform(Method method)
    • defineExpand

      public void defineExpand(Method method)
    • defineCollapse

      public void defineCollapse(Method method)
    • addNode

      @NotNull public @NotNull Tree addNode(@NotNull @NotNull Node item)
    • addNode

      @NotNull public @NotNull Tree addNode(@NotNull @NotNull Node item, int index)
    • removeNode

      @NotNull public @NotNull Tree removeNode(@NotNull @NotNull Node item)
    • removeAllNode

      @NotNull public @NotNull Tree removeAllNode()
    • getNodeCount

      public int getNodeCount()
    • getNode

      public Node getNode(int index)
    • getNodes

      public Node @NotNull [] getNodes()
    • getSelectedNode

      @Nullable public @Nullable Node getSelectedNode()
      return the first selected item, or null
    • getSelectedNodes

      public Node[] getSelectedNodes()
      return the all selected item, or EMPTY_NODES