org.openstreetmap.josm.gui.dialogs.relation
Class RelationTree.LazyRelationLoader

java.lang.Object
  extended by org.openstreetmap.josm.gui.dialogs.relation.RelationTree.LazyRelationLoader
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.TreeWillExpandListener
Enclosing class:
RelationTree

 class RelationTree.LazyRelationLoader
extends java.lang.Object
implements javax.swing.event.TreeWillExpandListener

An adapter for TreeWillExpand-events. If a node is to be expanded which is not loaded yet this will trigger asynchronous loading of the respective relation.


Constructor Summary
RelationTree.LazyRelationLoader()
           
 
Method Summary
 void treeWillCollapse(javax.swing.event.TreeExpansionEvent event)
           
 void treeWillExpand(javax.swing.event.TreeExpansionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationTree.LazyRelationLoader

RelationTree.LazyRelationLoader()
Method Detail

treeWillCollapse

public void treeWillCollapse(javax.swing.event.TreeExpansionEvent event)
                      throws javax.swing.tree.ExpandVetoException
Specified by:
treeWillCollapse in interface javax.swing.event.TreeWillExpandListener
Throws:
javax.swing.tree.ExpandVetoException

treeWillExpand

public void treeWillExpand(javax.swing.event.TreeExpansionEvent event)
                    throws javax.swing.tree.ExpandVetoException
Specified by:
treeWillExpand in interface javax.swing.event.TreeWillExpandListener
Throws:
javax.swing.tree.ExpandVetoException


JOSM