Class UIActionEvent
public class UIActionEvent extends UIEvent
{
// Fields
public static final int ACTION_PERFORMED;
// Constructors
public UIActionEvent(Object source, int id, IUIComponent item,
String command);
public UIActionEvent(Object source, int id, IUIComponent item,
String command, int modifiers);
// Methods
public String getActionCommand();
public IUIComponent getActionItem();
public int getModifiers();
public String paramString();
}
This class represents the action semantic event.
EventObject
|
+--UIBaseEvent
|
+--UIEvent
|
+--UIActionEvent
public UIActionEvent(Object source, int id, IUIComponent item,
String command);
Creates a UIActionEvent object with the specified source object.
Parameter | Description |
source
| The object where the event originated.
|
id
| The type of event.
|
item
| The item originating the event (command string).
|
command
| The command string for this action event.
|
public UIActionEvent(Object source, int id, IUIComponent item,
String command, int modifiers);
Creates a UIActionEvent object with the specified source object.
Parameter | Description |
source
| The object where the event originated.
|
id
| The type of event.
|
item
| The item originating the event (command string).
|
command
| The command string for this action event.
|
modifiers
| The modifiers held down during this action (See UIInputEvent)
|
public String getActionCommand();
Retrieves the command name associated with the action.
Return Value:
Returns the command name associated with the action.
public IUIComponent getActionItem();
Retrieves the IUIComponent item associated with the action.
Return Value:
Returns the component object associated with the action.
public int getModifiers();
Retrieves the modifier keys (or buttons) pressed during the action event.
Return Value:
Returns the modifiers. This can be one or a combination of the following:
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.
- ACTION_PERFORMED
- An action performed event type.