home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / INPUT / CALLBACK.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.8 KB  |  50 lines

  1.  
  2. package sub_arctic.input;
  3.  
  4. import sub_arctic.lib.interactor;
  5.  
  6. /** 
  7.  * Interface for objects that receive callback from interactors.  All callbacks
  8.  * are made through this API.
  9.  *
  10.  * @author Scott Hudson
  11.  */
  12. public interface callback_object {
  13.   /** 
  14.    * The following method is invoked for each callback resulting from actions
  15.    * performed on an interactor object.  It gives the interactor making the 
  16.    * call, the event "causing" the callback, an integer indicating 
  17.    * which kind of callback is being made (for interactors that support 
  18.    * multiple callbacks), a generic object that provides parameters to the 
  19.    * the callback.
  20.    *
  21.    * @param interactor from_obj      the interactor making the callback.
  22.    * @param event      evt           the event which "caused" the callback.
  23.    * @param int        callback_num  which callback type this is.
  24.    * @param Object     callback_info additional information about this callback
  25.    *                                 (the exact type of this information is 
  26.    *                                 determined by the callback type).
  27.    */  
  28.   void callback(
  29.     interactor from_obj, 
  30.     event      evt,
  31.     int        callback_num, 
  32.     Object     callback_info);
  33. }
  34. /*=========================== COPYRIGHT NOTICE ===========================
  35.  
  36. This file is part of the subArctic user interface toolkit.
  37.  
  38. Copyright (c) 1996 Scott Hudson and Ian Smith
  39. All rights reserved.
  40.  
  41. The subArctic system is freely available for most uses under the terms
  42. and conditions described in 
  43.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  44. and appearing in full in the lib/interactor.java source file.
  45.  
  46. The current release and additional information about this software can be 
  47. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  48.  
  49. ========================================================================*/
  50.