KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ItemListener.java 1.18 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 item events.
14  * The class that is interested in processing an item event
15  * implements this interface. The object created with that
16  * class is then registered with a component using the
17  * component's <code>addItemListener</code> method. When an
18  * item-selection event occurs, the listener object's
19  * <code>itemStateChanged</code> method is invoked.
20  *
21  * @author Amy Fowler
22  * @version 1.18 12/19/03
23  *
24  * @see java.awt.ItemSelectable
25  * @see ItemEvent
26  * @see <a HREF="http://java.sun.com/docs/books/tutorial/post1.0/ui/itemlistener.html">Tutorial: Writing an Item Listener</a>
27  * @see <a HREF="http://www.awl.com/cp/javaseries/jcl1_2.html">Reference: The Java Class Libraries (update file)</a>
28  *
29  * @since 1.1
30  */

31 public interface ItemListener extends EventListener JavaDoc {
32
33     /**
34      * Invoked when an item has been selected or deselected by the user.
35      * The code written for this method performs the operations
36      * that need to occur when an item is selected (or deselected).
37      */

38     void itemStateChanged(ItemEvent JavaDoc e);
39
40 }
41
Popular Tags