KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > event > ActionListener


1 /*
2  * @(#)ActionListener.java 1.16 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.awt.event;
9
10 import java.util.EventListener JavaDoc;
11
12 /**
13  * The listener interface for receiving action events.
14  * The class that is interested in processing an action event
15  * implements this interface, and the object created with that
16  * class is registered with a component, using the component's
17  * <code>addActionListener</code> method. When the action event
18  * occurs, that object's <code>actionPerformed</code> method is
19  * invoked.
20  *
21  * @see ActionEvent
22  * @see <a HREF="http://java.sun.com/docs/books/tutorial/post1.0/ui/eventmodel.html">Tutorial: Java 1.1 Event Model</a>
23  * @see <a HREF="http://www.awl.com/cp/javaseries/jcl1_2.html">Reference: The Java Class Libraries (update file)</a>
24  *
25  * @author Carl Quinn
26  * @version 1.16 12/19/03
27  * @since 1.1
28  */

29 public interface ActionListener extends EventListener JavaDoc {
30
31     /**
32      * Invoked when an action occurs.
33      */

34     public void actionPerformed(ActionEvent JavaDoc e);
35
36 }
37
Popular Tags