com.eyebolt.iplib
Class IPCallback

java.lang.Object
  |
  +--java.util.Observable
        |
        +--com.eyebolt.iplib.IPCallback

public class IPCallback
extends java.util.Observable

observable that can have setChanged public!

Version:
0.01, 4 Jan 1997
Author:
Jay Roberts

Field Summary
static int DEFAULT
          Description of the Field
static int LISTEN
          Description of the Field
private  int mytype
           
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
IPCallback()
          Constructor for the IPCallback object creates a DEFAULT callback object
IPCallback(int type)
          Creates a callback with the given ID/Type.
 
Method Summary
 void callMe(java.util.Observer o)
          Add this object as an observer of this callback.
(package private)  void changeIt()
          Notify the observers that the expected event has occurred.
 int getType()
          Gets the Type attribute of the IPCallback object
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
Description of the Field

LISTEN

public static final int LISTEN
Description of the Field

mytype

private int mytype
Constructor Detail

IPCallback

public IPCallback()
Constructor for the IPCallback object creates a DEFAULT callback object

IPCallback

public IPCallback(int type)
Creates a callback with the given ID/Type.
Parameters:
type - should be DEFAULT or LISTEN
Method Detail

getType

public int getType()
Gets the Type attribute of the IPCallback object
Returns:
The Type value

callMe

public void callMe(java.util.Observer o)
Add this object as an observer of this callback.
Parameters:
o - when the callback activity occurs, this object will be notified.

changeIt

void changeIt()
Notify the observers that the expected event has occurred.


Copyright © 2001 Eyebolt, Inc.