Java AWT

Previous Chapter 21
java.awt.event Reference
Next
 

ItemListener (New)

Name

ItemListener (New)

[Graphic: Figure from the text]

Description

Objects that implement the ItemListener interface can receive ItemEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.

Interface Definition

public abstract interface java.awt.event.ItemListener
   extends java.util.EventListener {
  // Interface Methods
  public abstract void itemStateChanged (ItemEvent e);
}

Interface Methods

itemStateChanged

public abstract void itemStateChanged (ItemEvent e)

Parameters

e

The item event that occurred.

Description

Notifies the ItemListener that an event occurred.

See Also

AWTEventMulticaster, EventListener, ItemEvent


Previous Home Next
ItemEvent (New) Book Index KeyAdapter (New)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java