Class UIItemEvent
public class UIItemEvent extends UIEvent
{
// Fields
public static final int DESELECTED;
public static final int ITEM_STATE_CHANGED;
public static final int SELECTED;
// Constructors
public UIItemEvent(IUIComponent source, int id, Object item,
int stateChange);
// Methods
public Object getItem();
public IUIComponent getItemSelectable();
public int getStateChange();
public String paramString();
}
This class generates an event when an item is selected or cleared.
EventObject
|
+--UIBaseEvent
|
+--UIEvent
|
+--UIItemEvent
public UIItemEvent(IUIComponent source, int id, Object item,
int stateChange);
Creates a ItemSelectEvent object with the specified IUIComponent source, type, item, and item select state.
Parameter | Description |
source
| The IUIComponent object where the event originated.
|
id
| The event type.
|
item
| The item where the event occurred.
|
stateChange
| The state change type that caused the event.
|
public Object getItem();
Retrieves the object where the event occurred.
Return Value:
Returns the object where the event occurred.
public IUIComponent getItemSelectable();
Retrieves the IUIComponent object where the event originated.
Return Value:
Returns the component where the event originated.
public int getStateChange();
Retrieves the state change type that generated the event.
Return Value:
Returns the state change. This may be either SELECTED or DESELECTED.
public String paramString();
This method is used internally by the toString method.
Return Value:
Returns a formatted String object that assists with textual representation of the exception.
- DESELECTED
- The item cleared state change type.
- ITEM_STATE_CHANGED
- The item state changed event type.
- SELECTED
- The item selected state change type.