org.netbeans.swing.outline 1.20

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.


Method Summary
 void treeExpansionVetoed(TreeExpansionEvent event, ExpandVetoException exception)
          Called when another listener vetoes a pending expansion.
 
Methods inherited from interface javax.swing.event.TreeWillExpandListener
treeWillCollapse, treeWillExpand
 

Method Detail

treeExpansionVetoed

void treeExpansionVetoed(TreeExpansionEvent event,
                         ExpandVetoException exception)
Called when another listener vetoes a pending expansion.

Parameters:
event - The vetoed event
exception - The veto exception.

org.netbeans.swing.outline 1.20

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.