equal
deleted
inserted
replaced
|
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 /** |
|
20 * This interface represents an event listener, and is a subset of the EventListener interface |
|
21 * defined in the <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/idl-definitions.html"> |
|
22 * DOM Level 2 Event model</a>. |
|
23 * <p> |
|
24 * This interface must be implemented and registered on an EventTarget using the |
|
25 * {@link org.w3c.dom.events.EventTarget#addEventListener addEventListener} method to be notified |
|
26 * about events that occur on or bubble through the event target. |
|
27 * |
|
28 * |
|
29 */ |
|
30 |
|
31 public interface EventListener |
|
32 { |
|
33 |
|
34 /** |
|
35 * This method is called whenever an event occurs of the type for which the |
|
36 * EventListener interface was registered.. The Event object contains the |
|
37 * necessary information pertaining to the event, such as its |
|
38 * target and type. |
|
39 * |
|
40 * @param evt the Event object containing necessary event information. |
|
41 */ |
|
42 public void handleEvent(Event evt); |
|
43 |
|
44 } |