|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.incrediblesoft.redjey.event.AbstractEvent
public class AbstractEvent
Field Summary | |
---|---|
static int |
ACTION_EVENT
|
static int |
FOCUS_EVENT
|
static int |
MOUSE_EVENT
Event types. |
static int |
PAINT_EVENT
|
Constructor Summary | |
---|---|
AbstractEvent(Component source,
int id,
int eventType)
Default constructor |
Method Summary | |
---|---|
void |
consume()
Consumes this event |
int |
getEventType()
Returns the type of event |
int |
getID()
Returns event id |
Component |
getSource()
Returns event's source |
boolean |
isConsumed()
Returns wether this event is already consumed |
void |
setID(int id)
Sets event id |
void |
setSource(Component source)
Sets source of event |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MOUSE_EVENT
public static final int PAINT_EVENT
public static final int ACTION_EVENT
public static final int FOCUS_EVENT
Constructor Detail |
---|
public AbstractEvent(Component source, int id, int eventType)
source
- Sourceid
- Event IDeventType
- Type of event (Mouse, Paint, Action etc.)Method Detail |
---|
public Component getSource()
public void setSource(Component source)
source
- Sourcepublic int getID()
public void setID(int id)
id
- IDpublic boolean isConsumed()
public void consume()
public int getEventType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |