ti.chimera.registry
Class SwingNodeSubscriber

java.lang.Object
  extended byti.chimera.registry.SwingNodeSubscriber
All Implemented Interfaces:
NodeSubscriber

public class SwingNodeSubscriber
extends java.lang.Object
implements NodeSubscriber

A node subscriber decorator that calls the wrapped subscriber (ns) from the context of the Swing/AWT Event Thread. This is for convenience, because many swing APIs can only be called from the context of the Swing/AWT Event Thread.

Version:
0.1
Author:
;Rob Clark;a0873619;San Diego;;

Nested Class Summary
 
Nested classes inherited from class ti.chimera.registry.NodeSubscriber
NodeSubscriber.ScriptFunctionNodeSubscriber
 
Constructor Summary
SwingNodeSubscriber(NodeSubscriber ns)
          Class Constructor.
 
Method Summary
 void publish(Node node, java.lang.Object value)
          Called to publish the new node value to the subscriber.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingNodeSubscriber

public SwingNodeSubscriber(NodeSubscriber ns)
Class Constructor.

Parameters:
ns - the node subscriber to wrap
Method Detail

publish

public void publish(Node node,
                    java.lang.Object value)
Called to publish the new node value to the subscriber.

Specified by:
publish in interface NodeSubscriber
Parameters:
node - the node doing the publishing
value - the node's new value