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 SummaryConstructors
- 
Method SummaryModifier 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- 
TablesTreeModelpublic TablesTreeModel()
 
- 
- 
Method Details- 
getRootReturns the tree root.
- 
getChildCountReturns the number of children for a given node.- Specified by:
- getChildCountin interface- TreeModel
 
- 
getChildReturns the child of a given node.
- 
isLeafReturns whether a child is a leaf.
- 
getIndexOfChildReturns the index of a child in parent.- Specified by:
- getIndexOfChildin interface- TreeModel
 
- 
addTreeModelListenerAdds a listener for the tree model event posted after the tree changes.- Specified by:
- addTreeModelListenerin interface- TreeModel
 
- 
removeTreeModelListenerRemoves a listener previously added with addTreeModelListener.- Specified by:
- removeTreeModelListenerin interface- TreeModel
 
- 
valueForPathChangedMessaged when the user has altered the value for the item identified by path to newValue.- Specified by:
- valueForPathChangedin interface- TreeModel
 
 
-