public class HActionEvent extends ActionEvent
HActionEvent event is used to
interact with a component implementing the HActionInputPreferred interface
as follows:
HActionEvent event may be sent
from the HAVi system to the component to cause the component to
become actioned.
HActionEvent event is sent from
the component to all registered HActionListeners whenever the
component is actioned.
All interoperable HAVi components which expect to receive HActionEvent events must implement the
HActionInputPreferred interface.
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASKACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKsource| Constructor and Description |
|---|
HActionEvent(HActionInputPreferred source,
int id,
String command)
Constructs an
HActionEvent. |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionCommand()
Retrieve the action command string associated with this event.
|
int |
getModifiers()
Returns any modifiers held down during this action event.
|
getWhen, paramStringgetSourcepublic HActionEvent(HActionInputPreferred source, int id, String command)
HActionEvent.source - The HActionInputPreferred component which has been actioned.id - The event id of the HActionEvent generated
by the HActionInputPreferred
component. This is the value that will be returned by the
event object's getID method.command - A String which is used as the action command
string for this event.public String getActionCommand()
getActionCommand in class ActionEventpublic int getModifiers()
Modifiers are not used for HActionEvents with the
HAVi platform. Interoperable HAVi applications shall not use the
return value of this method.
getModifiers in class ActionEventCopyright © 2012 code4tv.com. All Rights Reserved.