Class RelationTree.LazyRelationLoader
- java.lang.Object
-
- 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
Constructors Constructor Description LazyRelationLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtreeWillCollapse(javax.swing.event.TreeExpansionEvent event)voidtreeWillExpand(javax.swing.event.TreeExpansionEvent event)
-
-
-
Constructor Detail
-
LazyRelationLoader
LazyRelationLoader()
-
-
Method Detail
-
treeWillCollapse
public void treeWillCollapse(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException
- Specified by:
treeWillCollapsein interfacejavax.swing.event.TreeWillExpandListener- Throws:
javax.swing.tree.ExpandVetoException
-
treeWillExpand
public void treeWillExpand(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException
- Specified by:
treeWillExpandin interfacejavax.swing.event.TreeWillExpandListener- Throws:
javax.swing.tree.ExpandVetoException
-
-