All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, DesignerInitializable, EnabledEx, QualityMonitor, VisionComponent, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TreeSelectionListener, ScrollPaneConstants

See Also:
  • Field Details

    • COLUMN_NAMES

      public static final String[] COLUMN_NAMES
    • REAL_COLUMN_CLASSES

      public static final Class<?>[] REAL_COLUMN_CLASSES
    • COLUMN_CLASSES

      public static final Class<?>[] COLUMN_CLASSES
    • LINE_STYLES

      public static final String[] LINE_STYLES
    • ANGLED

      public static final int ANGLED
      See Also:
    • HORIZONTAL

      public static final int HORIZONTAL
      See Also:
    • NONE

      public static final int NONE
      See Also:
  • Constructor Details

    • PMITreeView

      public PMITreeView()
  • Method Details

    • getModel

      public TreeModel getModel()
    • getDefaultValue

      public Object getDefaultValue(String col, int row)
    • expandAll

      public void expandAll()
    • collapseAll

      public void collapseAll()
    • expandNode

      public void expandNode(TreeNode node, boolean expand)
    • expandNodeForLevel

      public void expandNodeForLevel(TreeNode rootNode, int levelsToExpand)
    • getData

      public Dataset getData()
    • setData

      public void setData(Dataset ds)
    • getSelectedItem

      public int getSelectedItem()
      Returns the index of the most recently selected node, or -1 if no node is selected
    • setSelectedItem

      public void setSelectedItem(int selectedItem)
    • getSelectedPath

      public String getSelectedPath()
    • setSelectedPath

      public void setSelectedPath(String selectedPath)
    • setSelectedItemImpl

      public void setSelectedItemImpl(int selectedItem, boolean alterSelection)
    • getSelectedItems

      public int[] getSelectedItems()
      Finds the row indexes of the selected tree nodes. Implicitly created folder nodes have no index.
      Returns:
      An array of ints representing the indices of selected files. The array may be empty if only folders are selected. Not null.
    • getSelectedPaths

      public String[] getSelectedPaths()
      Returns:
      Returns the paths of the selected items, including implicitly created folders. Not null.
    • clearSelection

      public void clearSelection()
    • getRowHeight

      public int getRowHeight()
    • setRowHeight

      public void setRowHeight(int rowHeight)
    • getLineStyle

      public int getLineStyle()
    • setLineStyle

      public void setLineStyle(int lineStyle)
    • getSelectionMode

      public int getSelectionMode()
    • setSelectionMode

      public void setSelectionMode(int mode)
    • isAutoSort

      public boolean isAutoSort()
    • setAutoSort

      public void setAutoSort(boolean autoSort)
    • isAutoExpand

      public boolean isAutoExpand()
    • setAutoExpand

      public void setAutoExpand(boolean autoExpand)
    • getAutoExpansionLevel

      public int getAutoExpansionLevel()
    • setAutoExpansionLevel

      public void setAutoExpansionLevel(int startupExpansionLevel)
    • isShowRootHandles

      public boolean isShowRootHandles()
    • setShowRootHandles

      public void setShowRootHandles(boolean showRootHandles)
    • getSeparationCharacter

      public String getSeparationCharacter()
    • setSeparationCharacter

      public void setSeparationCharacter(String separationCharacter)
    • getDefaultBackground

      public Color getDefaultBackground()
    • setDefaultBackground

      public void setDefaultBackground(Color defaultBackground)
    • getDefaultForeground

      public Color getDefaultForeground()
    • setDefaultForeground

      public void setDefaultForeground(Color defaultForeground)
    • getDefaultBorder

      public Border getDefaultBorder()
    • setDefaultBorder

      public void setDefaultBorder(Border defaultBorder)
    • getDefaultSelectedBackground

      public Color getDefaultSelectedBackground()
    • setDefaultSelectedBackground

      public void setDefaultSelectedBackground(Color defaultSelectedBackground)
    • getDefaultSelectedForeground

      public Color getDefaultSelectedForeground()
    • setDefaultSelectedForeground

      public void setDefaultSelectedForeground(Color defaultSelectedForeground)
    • getDefaultSelectedBorder

      public Border getDefaultSelectedBorder()
    • setDefaultSelectedBorder

      public void setDefaultSelectedBorder(Border defaultSelectedBorder)
    • getSelectionFillColor

      public Color getSelectionFillColor()
    • setSelectionFillColor

      public void setSelectionFillColor(Color selectionFillColor)
    • isFullWidthSelection

      public boolean isFullWidthSelection()
    • setFullWidthSelection

      public void setFullWidthSelection(boolean fullWidthSelection)
    • getDefaultClosedIcon

      public Icon getDefaultClosedIcon()
    • getDefaultLeafIcon

      public Icon getDefaultLeafIcon()
    • getDefaultOpenIcon

      public Icon getDefaultOpenIcon()
    • getDefaultLeafIconPath

      public String getDefaultLeafIconPath()
    • setDefaultLeafIconPath

      public void setDefaultLeafIconPath(String path)
    • getDefaultOpenIconPath

      public String getDefaultOpenIconPath()
    • setDefaultOpenIconPath

      public void setDefaultOpenIconPath(String path)
    • getDefaultClosedIconPath

      public String getDefaultClosedIconPath()
    • setDefaultClosedIconPath

      public void setDefaultClosedIconPath(String path)
    • valueChanged

      public void valueChanged(TreeSelectionEvent e)
      Listens to the tree selection change events in order to update the "selectedItem" property
      Specified by:
      valueChanged in interface TreeSelectionListener
    • initialize

      public void initialize()
      Specified by:
      initialize in interface DesignerInitializable
    • onStartup

      protected void onStartup()
      Description copied from class: AbstractVisionScrollPane
      Subclasses should override this to provide startup logic.
      Overrides:
      onStartup in class AbstractVisionScrollPane
    • setBackground

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • getBackground

      public Color getBackground()
      Overrides:
      getBackground in class Component
    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • isComponentEnabled

      public boolean isComponentEnabled()
      Specified by:
      isComponentEnabled in interface EnabledEx
    • setComponentEnabled

      public void setComponentEnabled(boolean componentEnabled)
      Specified by:
      setComponentEnabled in interface EnabledEx
    • evaluateEnabled

      public void evaluateEnabled()
      Specified by:
      evaluateEnabled in interface EnabledEx