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 TypeMethodDescriptionvoidAdds a listener for the tree model event posted after the tree changes.Returns the child of a given node.intgetChildCount(Object aParent) Returns the number of children for a given node.intgetIndexOfChild(Object aParent, Object aChild) Returns the index of a child in parent.getRoot()Returns the tree root.booleanReturns whether a child is a leaf.voidRemoves a listener previously added with addTreeModelListener.voidvalueForPathChanged(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:
getChildCountin 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:
getIndexOfChildin interfaceTreeModel
-
addTreeModelListener
Adds a listener for the tree model event posted after the tree changes.- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
Removes a listener previously added with addTreeModelListener.- Specified by:
removeTreeModelListenerin interfaceTreeModel
-
valueForPathChanged
Messaged when the user has altered the value for the item identified by path to newValue.- Specified by:
valueForPathChangedin interfaceTreeModel
-