de.dante.extex.interpreter.context.observer.group
Class AfterGroupObserverList

java.lang.Object
  extended byde.dante.extex.interpreter.context.observer.group.AfterGroupObserverList
All Implemented Interfaces:
AfterGroupObserver

public final class AfterGroupObserverList
extends java.lang.Object
implements AfterGroupObserver

This class provides a type-safe list of observers for the group close event.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Constructor Summary
AfterGroupObserverList()
           
 
Method Summary
 void add(AfterGroupObserver observer)
          Add an observer to the list.
static AfterGroupObserver register(AfterGroupObserver list, AfterGroupObserver observer)
          Take a list and add an observer.
 void update()
          Invoke all observers on the list to inform them that a group has just been closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterGroupObserverList

public AfterGroupObserverList()
Method Detail

register

public static AfterGroupObserver register(AfterGroupObserver list,
                                          AfterGroupObserver observer)
Take a list and add an observer. If the list is null then a new one is created.

Parameters:
list - the input list or null
observer - the observer to add
Returns:
the input list or a new one with the observer added

add

public void add(AfterGroupObserver observer)
Add an observer to the list.

Parameters:
observer - the observer to add to the list

update

public void update()
Invoke all observers on the list to inform them that a group has just been closed.

Specified by:
update in interface AfterGroupObserver