Class DataSourcePanelJDBC.TablesTreeModel

java.lang.Object
com.reportmill.panels.DataSourcePanelJDBC.TablesTreeModel
All Implemented Interfaces:
TreeModel
Enclosing class:
DataSourcePanelJDBC

public class DataSourcePanelJDBC.TablesTreeModel extends Object implements TreeModel
An inner class for the tables tree.
  • Constructor Details

    • TablesTreeModel

      public TablesTreeModel()
  • Method Details

    • getRoot

      public Object getRoot()
      Returns the tree root.
      Specified by:
      getRoot in interface TreeModel
    • getChildCount

      public int getChildCount(Object aParent)
      Returns the number of children for a given node.
      Specified by:
      getChildCount in interface TreeModel
    • getChild

      public Object getChild(Object aParent, int anIndex)
      Returns the child of a given node.
      Specified by:
      getChild in interface TreeModel
    • isLeaf

      public boolean isLeaf(Object aNode)
      Returns whether a child is a leaf.
      Specified by:
      isLeaf in interface TreeModel
    • getIndexOfChild

      public int getIndexOfChild(Object aParent, Object aChild)
      Returns the index of a child in parent.
      Specified by:
      getIndexOfChild in interface TreeModel
    • addTreeModelListener

      public void addTreeModelListener(TreeModelListener l)
      Adds a listener for the tree model event posted after the tree changes.
      Specified by:
      addTreeModelListener in interface TreeModel
    • removeTreeModelListener

      public void removeTreeModelListener(TreeModelListener l)
      Removes a listener previously added with addTreeModelListener.
      Specified by:
      removeTreeModelListener in interface TreeModel
    • valueForPathChanged

      public void valueForPathChanged(TreePath aPath, Object newValue)
      Messaged when the user has altered the value for the item identified by path to newValue.
      Specified by:
      valueForPathChanged in interface TreeModel