APIdia Launch Partner
Top Description Methods
java.awt.event

public Interface ItemListener

extends EventListener
Known Direct Implementers
javax.swing.AbstractButton.Handler, javax.swing.DefaultCellEditor.EditorDelegate, javax.swing.JToggleButton.AccessibleJToggleButton, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboPopup.ItemHandler, javax.swing.plaf.basic.BasicComboPopup.Handler, sun.awt.X11.XFileDialogPeer, sun.print.ServiceDialog.PrintServicePanel, sun.print.ServiceDialog.MediaPanel, sun.print.ServiceDialog.OutputPanel, java.awt.AWTEventMulticaster, java.awt.List.AccessibleAWTList, java.awt.Checkbox.AccessibleAWTCheckbox
Imports
java.util.EventListener

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
Since
1.1
See Also
java.awt.ItemSelectable, ItemEvent, Tutorial: Writing an Item Listener

Method Summary

Modifier and TypeMethod and Description
public void
itemStateChanged(ItemEvent
the event to be processed
e
)

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

Method Detail

itemStateChangedback to summary
public void itemStateChanged(ItemEvent e)

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).

Parameters
e:ItemEvent

the event to be processed