org.hibernate.tool.stat
Class AbstractTreeModel
java.lang.Object
org.hibernate.tool.stat.AbstractTreeModel
- All Implemented Interfaces:
- TreeModel
- Direct Known Subclasses:
- StatisticsTreeModel
public abstract class AbstractTreeModel
- extends Object
- implements TreeModel
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 $
Method Summary |
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
protected void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
|
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
|
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
|
protected void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
|
void |
removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
void |
valueForPathChanged(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, wait |
AbstractTreeModel
public AbstractTreeModel()
addTreeModelListener
public void addTreeModelListener(TreeModelListener l)
- Adds a listener for the TreeModelEvent posted after the tree changes.
- Specified by:
addTreeModelListener
in interface TreeModel
- Parameters:
l
- the listener to add- See Also:
removeTreeModelListener(javax.swing.event.TreeModelListener)
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)
- Removes a listener previously added with addTreeModelListener().
- Specified by:
removeTreeModelListener
in interface TreeModel
- Parameters:
l
- the listener to remove- See Also:
addTreeModelListener(javax.swing.event.TreeModelListener)
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- 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:
valueForPathChanged
in interface TreeModel
- Parameters:
path
- path to the node that the user has altered.newValue
- the new value from the TreeCellEditor.
fireTreeNodesChanged
protected void fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
fireTreeNodesInserted
protected void fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
fireTreeNodesRemoved
protected void fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
fireTreeStructureChanged
protected void fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)