yu.ac.bg.etf.javaqx.qswing.events
Class ActionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byyu.ac.bg.etf.javaqx.qswing.events.QSwingEvent
          extended byyu.ac.bg.etf.javaqx.qswing.events.ActionEvent
All Implemented Interfaces:
java.io.Serializable

public class ActionEvent
extends QSwingEvent

Action Event.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
See Also:
Serialized Form

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

SHIFT_MASK

public static final long SHIFT_MASK
The shift event mask.

See Also:
Constant Field Values

CTRL_MASK

public static final long CTRL_MASK
The ctrl event mask.

See Also:
Constant Field Values

META_MASK

public static final long META_MASK
The meta event mask.

See Also:
Constant Field Values

ALT_MASK

public static final long ALT_MASK
The alt event mask.

See Also:
Constant Field Values

ACTION_PERFORMED

public static final int ACTION_PERFORMED
Action performed id.

See Also:
Constant Field Values
Constructor Detail

ActionEvent

public ActionEvent(java.lang.Object source)
Constructs new ActionEvent object.

Parameters:
source - the source of the event
Throws:
java.lang.IllegalArgumentException - if the source is null

ActionEvent

public ActionEvent(java.lang.Object source,
                   int modifiers)
Constructs new ActionEvent object.

Parameters:
source - the source of the event
modifiers - the keyboard modifiers
Throws:
java.lang.IllegalArgumentException - if the source is null

ActionEvent

public ActionEvent(java.lang.Object source,
                   int id,
                   int modifiers)
Constructs new ActionEvent object.

Parameters:
source - the source of the event
id - the event id
modifiers - the keyboard modifiers
Throws:
java.lang.IllegalArgumentException - if the source is null

ActionEvent

public ActionEvent(java.lang.Object source,
                   int id,
                   java.lang.String actionCommand)
Constructs new ActionEvent object.

Parameters:
source - the source of the event
id - the event id
actionCommand - the command string for the action
Throws:
java.lang.IllegalArgumentException - if the source is null

ActionEvent

public ActionEvent(java.lang.Object source,
                   int id,
                   java.lang.String actionCommand,
                   int modifiers)
Constructs new ActionEvent object.

Parameters:
source - the source of the event
id - the event id
actionCommand - the command string for the action
modifiers - the keyboard modifiers
Throws:
java.lang.IllegalArgumentException - if the source is null

ActionEvent

public ActionEvent(java.lang.Object source,
                   int id,
                   java.lang.String actionCommand,
                   long when,
                   int modifiers)
Constructs new ActionEvent object.

Parameters:
source - the source of the event
id - the event id
actionCommand - the command string for the action
when - the time the event occurred
modifiers - the keyboard modifiers
Throws:
java.lang.IllegalArgumentException - if the source is null
Method Detail

getActionCommand

public java.lang.String getActionCommand()
Returns the command string associated with this action.

Returns:
the command string associated with this action

getWhen

public long getWhen()
Returns the timestamp of when this event occurred.

Returns:
the timestamp of when this event occurred

getModifiers

public int getModifiers()
Returns keyboard modifiers.

Returns:
keyboard modifiers

paramString

public java.lang.String paramString()
Returns string representation of the event.

Overrides:
paramString in class QSwingEvent
Returns:
string representation of the event


Copyright © 2007 ETF and contributors. All Rights Reserved.