|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent
yu.ac.bg.etf.javaqx.qswing.events.ActionEvent
Action Event.
Field Summary | |
static int |
ACTION_PERFORMED
Action performed id. |
static long |
ALT_MASK
The alt event mask. |
static long |
CTRL_MASK
The ctrl event mask. |
static long |
META_MASK
The meta event mask. |
static long |
SHIFT_MASK
The shift event mask. |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent |
ACTION_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTEXT_MENU_EVENT_MASK, CUSTOM_CONTEXT_MENU_EVENT_MASK, FOCUS_EVENT_MASK, id, KEY_EVENT_MASK, LOCATION_TOOL_TIP_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, PAINT_VIEW_EVENT_MASK, WINDOW_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ActionEvent(java.lang.Object source)
Constructs new ActionEvent object. |
|
ActionEvent(java.lang.Object source,
int modifiers)
Constructs new ActionEvent object. |
|
ActionEvent(java.lang.Object source,
int id,
int modifiers)
Constructs new ActionEvent object. |
|
ActionEvent(java.lang.Object source,
int id,
java.lang.String actionCommand)
Constructs new ActionEvent object. |
|
ActionEvent(java.lang.Object source,
int id,
java.lang.String actionCommand,
int modifiers)
Constructs new ActionEvent object. |
|
ActionEvent(java.lang.Object source,
int id,
java.lang.String actionCommand,
long when,
int modifiers)
Constructs new ActionEvent object. |
Method Summary | |
java.lang.String |
getActionCommand()
Returns the command string associated with this action. |
int |
getModifiers()
Returns keyboard modifiers. |
long |
getWhen()
Returns the timestamp of when this event occurred. |
java.lang.String |
paramString()
Returns string representation of the event. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent |
consume, getID, isConsumed, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long SHIFT_MASK
public static final long CTRL_MASK
public static final long META_MASK
public static final long ALT_MASK
public static final int ACTION_PERFORMED
Constructor Detail |
public ActionEvent(java.lang.Object source)
source
- the source of the event
java.lang.IllegalArgumentException
- if the source is nullpublic ActionEvent(java.lang.Object source, int modifiers)
source
- the source of the eventmodifiers
- the keyboard modifiers
java.lang.IllegalArgumentException
- if the source is nullpublic ActionEvent(java.lang.Object source, int id, int modifiers)
source
- the source of the eventid
- the event idmodifiers
- the keyboard modifiers
java.lang.IllegalArgumentException
- if the source is nullpublic ActionEvent(java.lang.Object source, int id, java.lang.String actionCommand)
source
- the source of the eventid
- the event idactionCommand
- the command string for the action
java.lang.IllegalArgumentException
- if the source is nullpublic ActionEvent(java.lang.Object source, int id, java.lang.String actionCommand, int modifiers)
source
- the source of the eventid
- the event idactionCommand
- the command string for the actionmodifiers
- the keyboard modifiers
java.lang.IllegalArgumentException
- if the source is nullpublic ActionEvent(java.lang.Object source, int id, java.lang.String actionCommand, long when, int modifiers)
source
- the source of the eventid
- the event idactionCommand
- the command string for the actionwhen
- the time the event occurredmodifiers
- the keyboard modifiers
java.lang.IllegalArgumentException
- if the source is nullMethod Detail |
public java.lang.String getActionCommand()
public long getWhen()
public int getModifiers()
public java.lang.String paramString()
paramString
in class QSwingEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |