|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--org.zaval.lw.event.LwAWTEvent
This class is basic for all light weight events. Every light event class that inherits the class has to provide:
getID
method.getUID
method. The event class UID defines type of the
event, for example LwMouseEvent has LwAWTEvent.MOUSE_UID UID for all ids.
Field Summary | |
static int |
COMP_UID
The component event UID. |
static int |
CONT_UID
The container event UID. |
static int |
FOCUS_UID
The focus event UID. |
protected int |
id
The event id. |
static int |
KEY_UID
The key event UID. |
static int |
MOTION_UID
The mouse motion event UID. |
static int |
MOUSE_UID
The mouse event UID. |
static int |
WIN_UID
The window event UID. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
LwAWTEvent(LwComponent target,
int id)
Constructs an event object with the specified source object and the event id. |
Method Summary | |
int |
getID()
Gets the event id. |
LwComponent |
getLwComponent()
Gets the source object of the event as LwComponent instance. |
int |
getUID()
Gets the UID of the event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int COMP_UID
public static final int MOUSE_UID
public static final int KEY_UID
public static final int FOCUS_UID
public static final int CONT_UID
public static final int MOTION_UID
public static final int WIN_UID
protected int id
Constructor Detail |
public LwAWTEvent(LwComponent target, int id)
target
- the object where the event originated.id
- the specified event id.Method Detail |
public int getID()
public LwComponent getLwComponent()
public int getUID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |