Interface Callback


public interface Callback
An interface for supporting a general, simple callback function.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    callback(int selector, Object parm)
    A generic callback function.
  • Method Details

    • callback

      int callback(int selector, Object parm)
      A generic callback function. Any class which needs to support callback can implement callback and pass a reference to itself to the function that does the callback.
      Parameters:
      selector - An indicator of the function to be performed. Interpretation is determined by the implementing class.
      parm - Whatever data may be appropriate to the callback.
      Returns:
      As specified by the implementing class.