de.dante.extex.interpreter.context.observer.glue
Interface GlueObservable

All Known Implementing Classes:
ContextImpl

public interface GlueObservable

This interface describes the possibility to register an observer for an glue change event.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Method Summary
 void registerGlueObserver(java.lang.String name, GlueObserver observer)
          Register an observer for glue change events.
 void unregisterGlueObserver(java.lang.String name, GlueObserver observer)
          Remove a registered observer for glue change events.
 

Method Detail

registerGlueObserver

public void registerGlueObserver(java.lang.String name,
                                 GlueObserver observer)
Register an observer for glue change events. Count change events are triggered when a value is assigned to a glue register. In this case the appropriate method in the observer is invoked.

A single glue register can be observed by giving a name of the glue register to observe. Only changes to this register trigger the notification. If this name is null the changes to all registers are reported to the observer.

Parameters:
name - the name or the number of the register
observer - the observer to receive the events

unregisterGlueObserver

public void unregisterGlueObserver(java.lang.String name,
                                   GlueObserver observer)
Remove a registered observer for glue change events. Count change events are triggered when a value is assigned to a glue register. In this case the appropriate method in the observer is invoked.

A single glue register can be observed by giving a name of the glue register to observe. The de-registration removes all instances of the observer for this register. If none is registered then nothing happens.

If this name is null then the observer for all registers is removed. Note that the observers for named registers are not effected. They have to be unregistered individually.

Parameters:
name - the name or the number of the register
observer - the observer to receive the events