public abstract class TreeModelAdapter
extends java.lang.Object
implements javax.swing.event.TreeModelListener
Modifier and Type | Class and Description |
---|---|
static class |
TreeModelAdapter.EventType |
Constructor and Description |
---|
TreeModelAdapter() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.event.TreeModelListener |
create(PairConsumer<? super javax.swing.event.TreeModelEvent,? super TreeModelAdapter.EventType> consumer) |
protected void |
process(javax.swing.event.TreeModelEvent event,
TreeModelAdapter.EventType type)
Invoked after a tree has changed.
|
void |
treeNodesChanged(javax.swing.event.TreeModelEvent event)
Invoked after some nodes have been changed.
|
void |
treeNodesInserted(javax.swing.event.TreeModelEvent event)
Invoked after some nodes have been inserted.
|
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent event)
Invoked after some nodes have been removed.
|
void |
treeStructureChanged(javax.swing.event.TreeModelEvent event)
Invoked after a tree hierarchy has changed.
|
public static javax.swing.event.TreeModelListener create(PairConsumer<? super javax.swing.event.TreeModelEvent,? super TreeModelAdapter.EventType> consumer)
protected void process(javax.swing.event.TreeModelEvent event, TreeModelAdapter.EventType type)
event
- the event object specifying changed nodestype
- the event type specifying a kind of changespublic void treeStructureChanged(javax.swing.event.TreeModelEvent event)
process(javax.swing.event.TreeModelEvent, com.intellij.util.ui.tree.TreeModelAdapter.EventType)
method with the corresponding event type.treeStructureChanged
in interface javax.swing.event.TreeModelListener
event
- the event object specifying a node with changed hierarchypublic void treeNodesChanged(javax.swing.event.TreeModelEvent event)
process(javax.swing.event.TreeModelEvent, com.intellij.util.ui.tree.TreeModelAdapter.EventType)
method with the corresponding event type.treeNodesChanged
in interface javax.swing.event.TreeModelListener
event
- the event object specifying changed nodespublic void treeNodesInserted(javax.swing.event.TreeModelEvent event)
process(javax.swing.event.TreeModelEvent, com.intellij.util.ui.tree.TreeModelAdapter.EventType)
method with the corresponding event type.treeNodesInserted
in interface javax.swing.event.TreeModelListener
event
- the event object specifying inserted nodespublic void treeNodesRemoved(javax.swing.event.TreeModelEvent event)
process(javax.swing.event.TreeModelEvent, com.intellij.util.ui.tree.TreeModelAdapter.EventType)
method with the corresponding event type.treeNodesRemoved
in interface javax.swing.event.TreeModelListener
event
- the event object specifying removed nodes