Package org.hibernate.tool.internal.util
Class AbstractTreeModel
java.lang.Object
org.hibernate.tool.internal.util.AbstractTreeModel
- All Implemented Interfaces:
TreeModel
- Direct Known Subclasses:
StatisticsTreeModel
Abstract class implementing the support for TreeModelEvents
and TreeModelListeners. The code is partly snipped from the
implementation of DefaultTreeModel.
- Version:
- $Revision: 1.1.2.1 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for the TreeModelEvent posted after the tree changes.protected voidfireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) protected voidfireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) protected voidfireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) protected voidfireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) voidRemoves a listener previously added with addTreeModelListener().voidvalueForPathChanged(TreePath path, Object newValue) Messaged when the user has altered the value for the item identified by path to newValue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.tree.TreeModel
getChild, getChildCount, getIndexOfChild, getRoot, isLeaf
-
Constructor Details
-
AbstractTreeModel
public AbstractTreeModel()
-
-
Method Details
-
addTreeModelListener
Adds a listener for the TreeModelEvent posted after the tree changes.- Specified by:
addTreeModelListenerin interfaceTreeModel- Parameters:
l- the listener to add- See Also:
-
removeTreeModelListener
Removes a listener previously added with addTreeModelListener().- Specified by:
removeTreeModelListenerin interfaceTreeModel- Parameters:
l- the listener to remove- See Also:
-
valueForPathChanged
Messaged when the user has altered the value for the item identified by path to newValue. If newValue signifies a truly new value the model should post a treeNodesChanged event.- Specified by:
valueForPathChangedin interfaceTreeModel- Parameters:
path- path to the node that the user has altered.newValue- the new value from the TreeCellEditor.
-
fireTreeNodesChanged
-
fireTreeNodesInserted
-
fireTreeNodesRemoved
-
fireTreeStructureChanged
-