|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects that support standard callbacks. This interface defines methods for seting and retrieving the callback object, for querying the interactor about the callbacks it supports, and for invoking a callback from the object.
Note that a default implementation of this interface is provided in base_interactor. However, storage for callbacks is not provided by base_interactor. So, for full callback functionallity, some or all of the methods declared here will need to be implemented in various subclasses.
callback_object
Method Summary | |
callback_object |
callback_obj()
Return the callback object associated with this object (or null if there is none). |
void |
do_callback(event evt)
Perform the default callback action for this object. |
void |
do_callback(event evt,
int callback_num,
java.lang.Object callback_info)
Perform a callback from this object, passing the given parameters as part of the callback parameters. |
int |
first_callback_num()
Indicate the first callback number used by this interactor. |
int |
last_callback_num()
Indicate the last callback number used by this interactor. |
void |
set_callback_obj(callback_object callbk)
Set the callback object associated with this object (use null if there should be no callbacks). |
Method Detail |
public callback_object callback_obj()
sub_arctic.lib.input#callback_object
public void set_callback_obj(callback_object callbk)
callback_object
- callbk the object to which callbacks from this
interactor will be made.sub_arctic.lib.input#callback_object
public int first_callback_num()
sub_arctic.lib.input#callback_object
public int last_callback_num()
sub_arctic.lib.input#callback_object
public void do_callback(event evt)
event
- evt the event which "caused" the callback.public void do_callback(event evt, int callback_num, java.lang.Object callback_info)
event
- evt the event which "caused" the callback.int
- callback_num which callback type this is.Object
- callback_info additional information about this callback
(the exact type of this information is
determined by the callback type).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |