public final class TreeModelListenerList
extends java.lang.Object
implements javax.swing.event.TreeModelListener
Constructor and Description |
---|
TreeModelListenerList() |
Modifier and Type | Method and Description |
---|---|
void |
add(javax.swing.event.TreeModelListener listener)
Adds a listener for changes in a tree model.
|
void |
clear()
Removes all added listeners.
|
boolean |
isEmpty()
Returns
true if no listeners have been added. |
void |
remove(javax.swing.event.TreeModelListener listener)
Removes a previously added listener.
|
void |
treeNodesChanged(javax.swing.event.TreeModelEvent event)
Notifies all added listeners that some nodes were changed.
|
void |
treeNodesInserted(javax.swing.event.TreeModelEvent event)
Notifies all added listeners that some nodes were inserted.
|
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent event)
Notifies all added listeners that some nodes were removed.
|
void |
treeStructureChanged(javax.swing.event.TreeModelEvent event)
Notifies all added listeners that a tree hierarchy was changed.
|
public void add(javax.swing.event.TreeModelListener listener)
listener
- a listener to addpublic void remove(javax.swing.event.TreeModelListener listener)
listener
- a listener to removepublic void clear()
public boolean isEmpty()
true
if no listeners have been added.
This method is safe for use by multiple concurrent threads.true
if no listeners have been added, or false
otherwisepublic void treeStructureChanged(javax.swing.event.TreeModelEvent event)
treeStructureChanged
in interface javax.swing.event.TreeModelListener
event
- the event object specifying a node with changed hierarchypublic void treeNodesChanged(javax.swing.event.TreeModelEvent event)
treeNodesChanged
in interface javax.swing.event.TreeModelListener
event
- the event object specifying changed nodespublic void treeNodesInserted(javax.swing.event.TreeModelEvent event)
treeNodesInserted
in interface javax.swing.event.TreeModelListener
event
- the event object specifying inserted nodespublic void treeNodesRemoved(javax.swing.event.TreeModelEvent event)
treeNodesRemoved
in interface javax.swing.event.TreeModelListener
event
- the event object specifying removed nodes