org.netbeans.swing.outline
Interface ExtTreeWillExpandListener
- All Superinterfaces:
- EventListener, TreeWillExpandListener
public interface ExtTreeWillExpandListener
- extends TreeWillExpandListener
A trivial extension to TreeWillExpandListener, to allow listeners to be
notified if another TreeWillExpandListener vetoes a pending expansion.
If a TreeExpansionListener added to an instance of TreePathSupport implements
this interface, it will be notified by the TreePathSupport if some other
listener vetoes expanding a node.
This interface is primarily used to avoid memory leaks if a TreeWillExpandListener
constructs some data structure (like a TableModelEvent that is a translation
of a TreeExpansionEvent) for use when the expansion actually occurs, to notify
it that the pending TableModelEvent will never be fired. It is not of much
interest to the rest of the world.
treeExpansionVetoed
void treeExpansionVetoed(TreeExpansionEvent event,
ExpandVetoException exception)
- Called when another listener vetoes a pending expansion.
- Parameters:
event - The vetoed eventexception - The veto exception.