All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.ifarchive.glk.ObjectRegistry

public interface ObjectRegistry
The opaque object registry allows a user program to be called when opaque objects are created or destroyed.

In Java, do this by implementing the ObjectRegistry interface, and calling OpaqueObject.setRegistry().

See Also:
setRegistry

Method Index

 o reg(OpaqueObject, int)
Register an opaque object.
 o unreg(OpaqueObject, int, Object)
Unregister an opaque object.

Methods

 o reg
 public abstract Object reg(OpaqueObject obj,
                            int objclass)
Register an opaque object.

Parameters:
obj - The object to register.
objclass - Its Glk class
Returns:
A dispatch rock that will be associated with this object.
 o unreg
 public abstract void unreg(OpaqueObject obj,
                            int objclass,
                            Object rock)
Unregister an opaque object.

Parameters:
obj - The object to unregister.
objclass - Its Glk class
rock - The object's dispatch rock.

All Packages  Class Hierarchy  This Package  Previous  Next  Index