Class SimpleTreeTable

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
com.inductiveautomation.ignition.client.util.gui.SimpleTreeTable
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class SimpleTreeTable extends JScrollPane
Puts a JTree and a JTable next to each other so that it feels like the JTree is the first column of a resulting new "table". It's up to you to ensure that the model of the table is sync'ed up with the tree so that both have the same number of rows based on the tree's expansion state.
See Also:
  • Field Details

    • GRID_COLOR

      public static final Color GRID_COLOR
  • Constructor Details

    • SimpleTreeTable

      public SimpleTreeTable(JTree tree, JTable table, String treeHeaderText)
    • SimpleTreeTable

      public SimpleTreeTable(JTree tree, JTable table, String treeHeaderText, int rowHeight)
  • Method Details

    • setVerticalScrollBar

      public void setVerticalScrollBar(JScrollBar verticalScrollBar)
      Overrides:
      setVerticalScrollBar in class JScrollPane
    • getMinTreeWidth

      public int getMinTreeWidth()
    • setMinTreeWidth

      public void setMinTreeWidth(int minTreeWidth)
    • resetTreeWidth

      public void resetTreeWidth()
      Clears the custom-set tree width back to the tree's preferred width or min tree width