java::awt::event::ItemListener Class Reference

Inheritance diagram for java::awt::event::ItemListener:

Inheritance graph
java::util::EventListenerjava::lang::Interfacejava::lang::Object
[legend]
Collaboration diagram for java::awt::event::ItemListener:

Collaboration graph
java::util::EventListenerjava::lang::Interfacejava::lang::Object
[legend]

List of all members.


Detailed Description

The listener interface for receiving item events.

The class that is interested in processing an item event implements this interface. The object created with that class is then registered with a component using the component's addItemListener method. When an item-selection event occurs, the listener object's itemStateChanged method is invoked.

Author:
Amy Fowler
Version:
1.17 01/23/03
See also:
java.awt.ItemSelectable

ItemEvent

Tutorial: Writing an Item Listener

Reference: The Java Class Libraries (update file)

Since:
1.1

Public Member Functions

virtual void itemStateChanged (const ItemEvent &e)=0
 Invoked when an item has been selected or deselected by the user.

Member Function Documentation

virtual void java::awt::event::ItemListener::itemStateChanged ( const ItemEvent e  )  [pure virtual]

Invoked when an item has been selected or deselected by the user.

The code written for this method performs the operations that need to occur when an item is selected (or deselected).


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:16 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3