|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.ui.event.UIEvent
public abstract class UIEvent
Platform and technology independent event definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
AWTEvent
Field Summary | |
---|---|
static int |
ALT_GRAPH_MASK
The AltGraph key modifier constant. |
static int |
ALT_MASK
The Alt key modifier constant. |
static int |
BUTTON1_MASK
The Mouse Button1 modifier constant. |
static int |
BUTTON2_MASK
The Mouse Button2 modifier constant. |
static int |
BUTTON3_MASK
The Mouse Button3 modifier constant. |
static int |
CTRL_MASK
The Control key modifier constant. |
static int |
META_MASK
The Meta key modifier constant. |
static int |
SHIFT_MASK
The Shift key modifier constant. |
Constructor Summary | |
---|---|
protected |
UIEvent(IComponent pSource,
int pId,
long pWhen,
int pModifiers)
Creates a new instance of UIEvent . |
Method Summary | |
---|---|
protected void |
checkId(int pId)
Checks if the current Instance of UIEvent allows the given id. |
int |
getId()
The id of this Event. |
int |
getModifiers()
Returns the modifier mask for this event. |
IComponent |
getSource()
The object on which the Event initially occurred. |
long |
getWhen()
Returns the timestamp of when this event occurred. |
boolean |
isModifier(int pModifier)
True, if the given modifiers are set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 ALT_GRAPH_MASK
public static final int BUTTON1_MASK
public static final int BUTTON2_MASK
public static final int BUTTON3_MASK
Constructor Detail |
---|
protected UIEvent(IComponent pSource, int pId, long pWhen, int pModifiers)
UIEvent
.
pSource
- the Source of this UIEvent.pId
- the Id of this UIEvent.pWhen
- the time the event occurredpModifiers
- represents the modifier keys and mouse buttons down while the event occurredMethod Detail |
---|
protected void checkId(int pId)
pId
- the Id of this UIEvent.public IComponent getSource()
public int getId()
public long getWhen()
public int getModifiers()
public boolean isModifier(int pModifier)
pModifier
- the modifiers to test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |