org.w3c.dom.events
Interface Event


public interface Event

The Event interface is used to provide contextual information about an event to the handler processing the event. An object which implements the Event interface is passed as the first parameter to the handleEvent call. If an event target is an element instance (see SVGElementInstance), the currentTarget is an implementation of EventTarget that does not implement the Node interface.


Method Summary
 EventTarget getCurrentTarget()
          This method is used to get the current target of this event.
 java.lang.String getType()
          This method returns the event type information.
 

Method Detail

getCurrentTarget

EventTarget getCurrentTarget()
This method is used to get the current target of this event. In SVG Tiny, this is always an object to which event listener was attached.

Returns:
the event's EventTarget.

getType

java.lang.String getType()
This method returns the event type information. The name of the event is case-sensitive. The following event types are supported:
click, DOMActivate, DOMFocusIn, DOMFocusOut (defined DOM Events);

Returns:
the event's type.


Copyright © 2003-2006 Nokia Corporation. See the Copyright Notice for details.