org.netbeans.swing.outline 1.7

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 vetos 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 vetos 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)
           
 
Methods inherited from interface javax.swing.event.TreeWillExpandListener
treeWillCollapse, treeWillExpand
 

Method Detail

treeExpansionVetoed

void treeExpansionVetoed(TreeExpansionEvent event,
                         ExpandVetoException exception)

org.netbeans.swing.outline 1.7

Built on November 22 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.