|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jrex.event.JRexEvent
A class representing JRex Event.
Constructor Summary | |
protected |
JRexEvent(int type,
Object eventData,
long when,
Object notifier)
Constructs an JRexEvent object with the specified event data , type,when. |
Method Summary | |
static JRexEvent |
createEvent(int type,
Object eventData,
long when)
Factory method to create a jrex event. |
static JRexEvent |
createSyncEvent(int type,
Object eventData,
long when,
Object notifier)
Factory method to create a synchronized jrex event. |
Object |
getData()
Returns the data assoicated with the event. |
Object |
getNotifier()
Returns the notifier associated with the event. |
int |
getType()
Returns the type of the event. |
long |
getWhen()
Returns the timestamp of when this event occurred. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected JRexEvent(int type, Object eventData, long when, Object notifier)
type
- the event typeeventData
- the event related data.when
- the time the event occurrednotifier
- the Object whose notifyAll
method will be called after event is process.Method Detail |
public static JRexEvent createEvent(int type, Object eventData, long when)
public static JRexEvent createSyncEvent(int type, Object eventData, long when, Object notifier)
public int getType()
public Object getData()
public long getWhen()
public Object getNotifier()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |