ItemEventNameItemEvent
DescriptionItemEvents are generated by objects that implement the ItemSelectable interface. Choice is one example of such an object. Class Definition
public class java.awt.event.ItemEvent extends java.awt.AWTEvent { // Constants public final static int DESELECTED; public final static int ITEM_FIRST; public final static int ITEM_LAST; public final static int ITEM_STATE_CHANGED; public final static int SELECTED; // Constructors public ItemEvent (ItemSelectable source, int id, Object item, int stateChange); // Instance Methods public Object getItem(); public ItemSelectable getItemSelectable(); public int getStateChange(); public String paramString(); } ConstantsDESELECTEDpublic final static int DESELECTEDIndicates that an item was deselected. ITEM_FIRSTpublic final static int ITEM_FIRSTSpecifies the beginning range of item event ID values. ITEM_LASTpublic final static int ITEM_LASTSpecifies the ending range of item event ID values. ITEM_STATE_CHANGEDpublic final static int ITEM_STATE_CHANGEDAn event type indicating that an item was selected or deselected. SELECTEDpublic final static int SELECTEDIndicates that an item was selected. ConstructorsItemEventpublic ItemEvent (ItemSelectable source, int id, Object item, int stateChange)
Instance MethodsgetItempublic Object getItem()
getItemSelectablepublic ItemSelectable getItemSelectable()
getStateChangepublic int getStateChange()
paramStringpublic String paramString()
See AlsoAWTEvent, ItemSelectable, ItemListener |
|