Package com.reportmill.panels
Class DataSourcePanelJDBC.TablesTreeModel
java.lang.Object
com.reportmill.panels.DataSourcePanelJDBC.TablesTreeModel
- All Implemented Interfaces:
TreeModel
- Enclosing class:
- DataSourcePanelJDBC
An inner class for the tables tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener for the tree model event posted after the tree changes.Returns the child of a given node.int
getChildCount
(Object aParent) Returns the number of children for a given node.int
getIndexOfChild
(Object aParent, Object aChild) Returns the index of a child in parent.getRoot()
Returns the tree root.boolean
Returns whether a child is a leaf.void
Removes a listener previously added with addTreeModelListener.void
valueForPathChanged
(TreePath aPath, Object newValue) Messaged when the user has altered the value for the item identified by path to newValue.
-
Constructor Details
-
TablesTreeModel
public TablesTreeModel()
-
-
Method Details
-
getRoot
Returns the tree root. -
getChildCount
Returns the number of children for a given node.- Specified by:
getChildCount
in interfaceTreeModel
-
getChild
Returns the child of a given node. -
isLeaf
Returns whether a child is a leaf. -
getIndexOfChild
Returns the index of a child in parent.- Specified by:
getIndexOfChild
in interfaceTreeModel
-
addTreeModelListener
Adds a listener for the tree model event posted after the tree changes.- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
Removes a listener previously added with addTreeModelListener.- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
valueForPathChanged
Messaged when the user has altered the value for the item identified by path to newValue.- Specified by:
valueForPathChanged
in interfaceTreeModel
-