56
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
package org.w3c.dom.events;
|
|
18 |
|
|
19 |
import java.lang.String;
|
|
20 |
|
|
21 |
/**
|
|
22 |
* The Event interface is used to provide contextual information about an event to the handler
|
|
23 |
* processing the event. An object which implements the Event interface is passed as the first
|
|
24 |
* parameter to the {@link org.w3c.dom.events.EventListener#handleEvent handleEvent} call. If
|
|
25 |
* an event target is an element instance (see <a href="http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGElementInstance">SVGElementInstance</a>), the currentTarget is an implementation of EventTarget
|
|
26 |
* that does not implement the Node interface.
|
|
27 |
*/
|
|
28 |
|
|
29 |
public interface Event
|
|
30 |
{
|
|
31 |
/**
|
|
32 |
* This method is used to get the current target of this event.
|
|
33 |
* In SVG Tiny, this is always an object to which event listener was attached.
|
|
34 |
*
|
|
35 |
* @return the event's <code>EventTarget</code>.
|
|
36 |
*/
|
|
37 |
public EventTarget getCurrentTarget();
|
|
38 |
|
|
39 |
/**
|
|
40 |
* This method returns the event type information. The name of the event is case-sensitive.
|
|
41 |
* The following event types are supported:
|
|
42 |
* <br>
|
|
43 |
* <b>click</b>, <b>DOMActivate</b>, <b>DOMFocusIn</b>, <b>DOMFocusOut</b> (defined DOM Events);
|
|
44 |
* @return the event's type.
|
|
45 |
*/
|
|
46 |
public String getType();
|
|
47 |
|
|
48 |
|
|
49 |
}
|