org.apache.batik.dom.events
Class EventListenerWrapper

java.lang.Object
  |
  +--org.apache.batik.dom.events.EventListenerWrapper
All Implemented Interfaces:
EventListener

public class EventListenerWrapper
extends java.lang.Object
implements EventListener

This class implements a wrapper for an Event. All the methods of the underlying document are called in a single thread.


Field Summary
protected  DocumentWrapper documentWrapper
          The associated document wrapper.
protected  EventListener eventListener
          The wrapped EventListener.
 
Constructor Summary
EventListenerWrapper(DocumentWrapper dw, EventListener e)
          Creates a new EventListenerWrapper.
 
Method Summary
 EventListener getEventListener()
          Returns the associated EventListener.
 void handleEvent(Event ev)
          DOM: Implements EventListener.handleEvent(Event).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentWrapper

protected DocumentWrapper documentWrapper
The associated document wrapper.

eventListener

protected EventListener eventListener
The wrapped EventListener.
Constructor Detail

EventListenerWrapper

public EventListenerWrapper(DocumentWrapper dw,
                            EventListener e)
Creates a new EventListenerWrapper.
Method Detail

getEventListener

public EventListener getEventListener()
Returns the associated EventListener.

handleEvent

public void handleEvent(Event ev)
DOM: Implements EventListener.handleEvent(Event).
Specified by:
handleEvent in interface EventListener
Following copied from interface: org.w3c.dom.events.EventListener
Parameters:
evt - The Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.