1 |
/* ItemListener.java -- Listen for item events. |
/* ItemListener.java -- listen for item events |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
38 |
|
|
39 |
package java.awt.event; |
package java.awt.event; |
40 |
|
|
41 |
/** |
import java.util.EventListener; |
|
* This interface is for classes that wish to receive events when an |
|
|
* item's state changes. |
|
|
* |
|
|
* @author Aaron M. Renn (arenn@urbanophile.com) |
|
|
*/ |
|
|
public interface ItemListener extends java.util.EventListener |
|
|
{ |
|
42 |
|
|
43 |
/** |
/** |
44 |
* This method is called when an item's state is changed. |
* This interface is for classes that wish to receive events when an |
45 |
* |
* item's selection state changes. |
46 |
* @param event The <code>ItemEvent</code> indicating the change. |
* |
47 |
*/ |
* @author Aaron M. Renn <arenn@urbanophile.com> |
48 |
public abstract void |
* @see ItemSelectable |
49 |
itemStateChanged(ItemEvent event); |
* @see ItemEvent |
50 |
|
* @since 1.1 |
51 |
|
* @status updated to 1.4 |
52 |
|
*/ |
53 |
|
public interface ItemListener extends EventListener |
54 |
|
{ |
55 |
|
/** |
56 |
|
* This method is called when an item's state is changed. |
57 |
|
* |
58 |
|
* @param event the <code>ItemEvent</code> indicating the change |
59 |
|
*/ |
60 |
|
void itemStateChanged(ItemEvent event); |
61 |
} // interface ItemListener |
} // interface ItemListener |
|
|
|