| java.awt.AWTEvent java.awt.event.ItemEvent
ItemEvent | public class ItemEvent extends AWTEvent (Code) | | The item event emitted by ItemSelectable objects.
This event is generated when an item is selected or de-selected.
See Also: java.awt.ItemSelectable See Also: ItemListener version: 1.19 08/19/02 author: Carl Quinn |
Field Summary | |
final public static int | DESELECTED The item de-selected state change type. | final public static int | ITEM_FIRST Marks the first integer id for the range of item event ids. | final public static int | ITEM_LAST Marks the last integer id for the range of item event ids. | final public static int | ITEM_STATE_CHANGED The item state changed event type. | final public static int | SELECTED The item selected state change type. | Object | item | int | stateChange |
Constructor Summary | |
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. |
DESELECTED | final public static int DESELECTED(Code) | | The item de-selected state change type.
|
ITEM_FIRST | final public static int ITEM_FIRST(Code) | | Marks the first integer id for the range of item event ids.
|
ITEM_LAST | final public static int ITEM_LAST(Code) | | Marks the last integer id for the range of item event ids.
|
ITEM_STATE_CHANGED | final public static int ITEM_STATE_CHANGED(Code) | | The item state changed event type.
|
SELECTED | final public static int SELECTED(Code) | | The item selected state change type.
|
stateChange | int stateChange(Code) | | |
ItemEvent | public ItemEvent(ItemSelectable source, int id, Object item, int stateChange)(Code) | | Constructs a ItemSelectEvent object with the specified ItemSelectable source,
type, item, and item select state.
Parameters: source - the ItemSelectable object where the event originated |
getItem | public Object getItem()(Code) | | Returns the item where the event occurred.
|
getItemSelectable | public ItemSelectable getItemSelectable()(Code) | | Returns the ItemSelectable object where this event originated.
|
|
|