|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventHandler
This class defines an object that receives event notification from an
EventManager
. It also defines a method to return a
HandleIfc
to the event handler, making it possible to be
resolved at some future time (i.e across EventManager invocations)
EventManager
,
Event
Method Summary | |
---|---|
org.exolab.core.foundation.HandleIfc |
getHandle()
Return a handle to this event handler for the purpose of storing and restoring it. |
void |
handleEvent(int event,
java.lang.Object callback,
long time)
Handle the specified event, generated by the EventManager . |
Method Detail |
---|
void handleEvent(int event, java.lang.Object callback, long time)
EventManager
.
The event handler pressumably knows how to handle the callback object
and should cast it appropriately before using it.
This methodshould not throw any exceptions
event
- the event to handlecallback
- the callback objecttime
- the absolute time, in ms, that the event
fired.org.exolab.core.foundation.HandleIfc getHandle()
EventManager
then you must support this
method, otherwise this method can simply return null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |