textbender.o.rhinohide.events
Class Relay

java.lang.Object
  extended by Relay
All Implemented Interfaces:
EventListener
Direct Known Subclasses:
RelayS, RelaySI

public abstract class Relay
extends Object
implements EventListener

Relay to transfer events from JavaScript to Java.


Constructor Summary
Relay()
           
 
Method Summary
(package private) abstract  void addTo(RhiEventTarget target, String type, boolean useCapture)
          Adds this relay to the specified target.
(package private) static void checkThreadSafe(EventListener listener)
           
(package private) abstract  void removeFrom(RhiEventTarget target, String type, boolean useCapture)
          Removes this relay from the specified target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.events.EventListener
handleEvent
 

Constructor Detail

Relay

public Relay()
Method Detail

checkThreadSafe

static void checkThreadSafe(EventListener listener)
Throws:
Error - if the listener's handleEvent() method is not annotated @thread-safe

addTo

abstract void addTo(RhiEventTarget target,
                    String type,
                    boolean useCapture)
Adds this relay to the specified target.


removeFrom

abstract void removeFrom(RhiEventTarget target,
                         String type,
                         boolean useCapture)
Removes this relay from the specified target.