| java.lang.Object org.isqlviewer.util.LoggableObject org.isqlviewer.swing.AbstractTreeModel
All known Subclasses: org.isqlviewer.swing.outline.AbstractTreeTableModel, org.isqlviewer.model.BookmarkTreeModel,
AbstractTreeModel | abstract public class AbstractTreeModel extends LoggableObject implements TreeModel(Code) | | Base class for tree models.
Since the JDK does not provide any kind of abstract tree model where it really just implements the model listener
code, i.e. AbstractTableModel. This class is here to remedy that lacking, since often the DefaultTreeModel is
cumbersome to work with dealing with all those TreeNode classes.
All this class does implements is your basic fireXXXX methods for TreeModelListeners and has the implementation for
adding and removing those listeners from the model every thing else is up to childeren of this class.
author: Markus A. Kobold <mkobold at sprintpcs dot com> |
fireTreeNodesChanged | protected void fireTreeNodesChanged(TreeModelEvent e)(Code) | | Notifies the model listeners of a treeNodesChanged event.
Iterates through the current listener list, and calls the treeNodesChanged method for the listener. If the model
listener throws an an exception or error it will be silently ignored and this method will continue to dispatch
the event until all listeners have been notified.
See Also: TreeModelListener.treeNodesChanged(javax.swing.event.TreeModelEvent) Parameters: e - TreeModelEvent to dispatch. |
fireTreeNodesInserted | protected void fireTreeNodesInserted(TreeModelEvent e)(Code) | | Notifies the model listeners of a treeNodesInserted event.
Iterates through the current listener list, and calls the treeNodesInserted method for the listener. If the model
listener throws an an exception or error it will be silently ignored and this method will continue to dispatch
the event until all listeners have been notified.
See Also: TreeModelListener.treeNodesInserted(javax.swing.event.TreeModelEvent) Parameters: e - TreeModelEvent to dispatch. |
fireTreeNodesRemoved | protected void fireTreeNodesRemoved(TreeModelEvent e)(Code) | | Notifies the model listeners of a treeNodesRemoved event.
Iterates through the current listener list, and calls the treeNodesRemoved method for the listener. If the model
listener throws an an exception or error it will be silently ignored and this method will continue to dispatch
the event until all listeners have been notified.
See Also: TreeModelListener.treeNodesRemoved(javax.swing.event.TreeModelEvent) Parameters: e - TreeModelEvent to dispatch. |
fireTreeStructureChanged | protected void fireTreeStructureChanged(TreeModelEvent e)(Code) | | Notifies the model listeners of a treeStructureChanged event.
Iterates through the current listener list, and calls the treeStructureChanged method for the listener. If the
model listener throws an an exception or error it will be silently ignored and this method will continue to
dispatch the event until all listeners have been notified.
See Also: TreeModelListener.treeStructureChanged(javax.swing.event.TreeModelEvent) Parameters: e - TreeModelEvent to dispatch. |
|
|