|
|||||||||
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.ComponentEvent
yu.ac.bg.etf.javaqx.qswing.events.InputEvent
Input Event.
Field Summary | |
static int |
ALT_MASK
The alt modifier mask. |
static int |
BUTTON1_MASK
The button1 modifier mask. |
static int |
BUTTON2_MASK
The button2 modifier mask. |
static int |
BUTTON3_MASK
The button3 modifier mask. |
static int |
CTRL_MASK
The control modifier mask. |
static int |
META_MASK
The meta modifier mask. |
static int |
SHIFT_MASK
The shift modifier mask. |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent |
COMPONENT_HIDDEN, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
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 | |
protected |
InputEvent(JQComponent source,
int id,
int modifiers)
Constructs new InputEvent object. |
protected |
InputEvent(JQComponent source,
int id,
long when,
int modifiers)
Constructs new InputEvent object. |
Method Summary | |
void |
consume()
Consumes the event. |
int |
getModifiers()
Returns the modifiers. |
static java.lang.String |
getModifiersText(int modifiers)
Returns a string representation of the modifiers. |
long |
getWhen()
Returns the timestamp of when this event occurred. |
boolean |
isAltDown()
Returns true if alt modifier is down. |
boolean |
isConsumed()
Returns true if the event is consumed. |
boolean |
isControlDown()
Returns true if control modifier is down. |
boolean |
isMetaDown()
Returns true if meta modifier is down. |
boolean |
isShiftDown()
Returns true if shift modifier is down. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent |
getComponent, paramString |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent |
getID, 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 int SHIFT_MASK
public static final int CTRL_MASK
public static final int META_MASK
public static final int ALT_MASK
public static final int BUTTON1_MASK
public static final int BUTTON2_MASK
public static final int BUTTON3_MASK
Constructor Detail |
protected InputEvent(JQComponent source, int id, long when, int modifiers)
source
- the event sourceid
- the event idwhen
- the time the event occurredmodifiers
- the modifiers
java.lang.IllegalArgumentException
- if the source is nullprotected InputEvent(JQComponent source, int id, int modifiers)
source
- the event sourceid
- the event idmodifiers
- the modifiers
java.lang.IllegalArgumentException
- if the source is nullMethod Detail |
public long getWhen()
public int getModifiers()
public boolean isShiftDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isAltDown()
public static java.lang.String getModifiersText(int modifiers)
modifiers
- the modifiers
public boolean isConsumed()
isConsumed
in class QSwingEvent
public void consume()
consume
in class QSwingEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |