站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

Class java.awt.event.ItemEvent - JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.event.ItemEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----java.awt.event.ItemEvent

public class ItemEvent
extends AWTEvent
The item event emitted by ItemSelectable objects. This event is generated when an item is selected or de-selected.

See Also:
ItemSelectable, ItemListener

Variable Index

 o DESELECTED
The item de-selected state change type.
 o ITEM_FIRST
Marks the first integer id for the range of item event ids.
 o ITEM_LAST
Marks the last integer id for the range of item event ids.
 o ITEM_STATE_CHANGED
The item state changed event type.
 o SELECTED
The item selected state change type.

Constructor Index

 o ItemEvent(ItemSelectable, int, Object, int)
Constructs a ItemSelectEvent object with the specified ItemSelectable source, type, item, and item select state.

Method Index

 o getItem()
Returns the item where the event occurred.
 o getItemSelectable()
Returns the ItemSelectable object where this event originated.
 o getStateChange()
Returns the state change type which generated the event.
 o paramString()

Variables

 o ITEM_FIRST
 public static final int ITEM_FIRST
Marks the first integer id for the range of item event ids.

 o ITEM_LAST
 public static final int ITEM_LAST
Marks the last integer id for the range of item event ids.

 o ITEM_STATE_CHANGED
 public static final int ITEM_STATE_CHANGED
The item state changed event type.

 o SELECTED
 public static final int SELECTED
The item selected state change type.

 o DESELECTED
 public static final int DESELECTED
The item de-selected state change type.

Constructors

 o ItemEvent
 public ItemEvent(ItemSelectable source,
                  int id,
                  Object item,
                  int stateChange)
Constructs a ItemSelectEvent object with the specified ItemSelectable source, type, item, and item select state.

Parameters:
source - the ItemSelectable object where the event originated

Methods

 o getItemSelectable
 public ItemSelectable getItemSelectable()
Returns the ItemSelectable object where this event originated.

 o getItem
 public Object getItem()
Returns the item where the event occurred.

 o getStateChange
 public int getStateChange()
Returns the state change type which generated the event.

See Also:
SELECTED, DESELECTED
 o paramString
 public String paramString()
Overrides:
paramString in class AWTEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.