com.tensegrity.generic.util
Interface Observer

All Known Subinterfaces:
Document, GraphDocument, GraphPanel, TemplateDocument
All Known Implementing Classes:
AbstractDocument, AbstractLayoutObserver, GraphLayoutDialog, MenuTool, NavigatorPanel, Slide, SlidePanel, SwingApplicationFrame.NavigatorUpdater, SwingGraphDocument, SwingGraphPanel, SwingNavigatorContainer, SwingTemplateDocument, SwtApplicationFrame.NavigatorUpdater, SwtGraphDocument, SwtGraphPanel, SwtNavigator, SwtNavigatorContainer

public interface Observer

This class is a clone of the standard's api observer.

Since the observable interface is implemented as well, this interface is needed to replace the type in the update method.

Reason for using our own observer/observable's is that observables must be aggregated often (extending java.util.Observable is not always feasible) and also for debugging reasons. Observables that hang on to their observers too long are a major reason for memory leaks.

Note that the observer type specified in the update method is not java.util.Observer, but it is com.tensegrity.generic.util.Observer.

Version:
$Id: Observer.java,v 1.5 2003/09/29 10:49:19 AndreasEbbert Exp $
Author:
Stepan Rutz
See Also:
Observable

Method Summary
 void update(Observable observable, java.lang.Object arg)
          The callback method of an observer that is invoked by the Observable each time the state has changed.
 

Method Detail

update

public void update(Observable observable,
                   java.lang.Object arg)
The callback method of an observer that is invoked by the Observable each time the state has changed.

Parameters:
observable - the observable that triggered the call.
arg - an object carrying additional information.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.