org.oddjob.monitor.control
Class NodeControl

java.lang.Object
  extended by org.oddjob.monitor.control.NodeControl
All Implemented Interfaces:
EventListener, TreeWillExpandListener

public class NodeControl
extends Object
implements TreeWillExpandListener

Listens for tree expansion events to lazily create nodes, add listeners only when they are required, and remove listeners when they are not. The intention is to put as little strain on the network as possible.

Author:
Rob Gordon.

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

Constructor Detail

NodeControl

public NodeControl()
Method Detail

treeWillCollapse

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

treeWillExpand

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