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, de-selected, expanded,
or contracted.
- See Also:
- ItemSelectable, ItemListener
-
DESELECTED
-
The item de-selected state change type.
-
ITEM_FIRST
- Marks the first integer id for the range of item event ids.
-
ITEM_LAST
- Marks the last integer id for the range of item event ids.
-
ITEM_STATE_CHANGED
-
The item state changed event type.
-
SELECTED
- The item selected state change type.
-
ItemEvent(ItemSelectable, int, Object, int)
- Constructs a ItemSelectEvent object with the specified ItemSelectable source,
type, item, and item select state.
-
getItem()
- Returns the item where the event occurred.
-
getItemSelectable()
- Returns the ItemSelectable object where this event originated.
-
getStateChange()
- Returns the state change type which generated the event.
-
paramString()
-
ITEM_FIRST
Properties Public Constant
ITEM_FIRST=int
- Marks the first integer id for the range of item event ids.
ITEM_LAST
Properties Public Constant
ITEM_LAST=int
- Marks the last integer id for the range of item event ids.
ITEM_STATE_CHANGED
Properties Public Constant
ITEM_STATE_CHANGED=int
- The item state changed event type.
SELECTED
Properties Public Constant
SELECTED=int
- The item selected state change type.
DESELECTED
Properties Public Constant
DESELECTED=int
- The item de-selected state change type.
ItemEvent
method ItemEvent(source=ItemSelectable, -
id=int, -
item=Object, -
stateChange=int) public
- Constructs a ItemSelectEvent object with the specified ItemSelectable source,
type, item, and item select state.
- Parameters:
- source - the ItemSelectable object where the event originated
getItemSelectable
method getItemSelectable() returns ItemSelectable public
- Returns the ItemSelectable object where this event originated.
getItem
method getItem() returns Object public
- Returns the item where the event occurred.
getStateChange
method getStateChange() returns int public
- Returns the state change type which generated the event.
- See Also:
- SELECTED, DESELECTED
paramString
method paramString() returns String public
- Overrides:
- paramString in class AWTEvent
All Packages Class Hierarchy This Package Previous Next Index