ch.elca.dependency.core
Interface Observer

All Known Implementing Classes:
View

public interface Observer

The Observer Interface is responsible for holding implizit all the views which belong to the controller of the MVC Pattern.
It defines the two overloaded update methods which have to be implemented by the views. Like that the model component of the MVC pattern must not know explicit all the classes on which it has to perform a update after a change of the model.
The diverse views are in a list as Observers.

Version:
1.0-beta
Author:
Christoph Trutmann
, Pawel Kowalski
See Also:
View, ch.elca.dependency.model.FilteredModel

Method Summary
 void clearSelection()
          Clears all the selections in all the views.
 void select(java.util.ArrayList selectList)
          Selects all the packages in the specified list for all the views implementing the Observer interface.
 void update(DependencyModel dependencyModel)
          Updates this Observer.
 

Method Detail

update

public void update(DependencyModel dependencyModel)
Updates this Observer. Called by the model to indicate that a property has changed.

Parameters:
dependencyModel - a DependencyModel value

select

public void select(java.util.ArrayList selectList)
Selects all the packages in the specified list for all the views implementing the Observer interface.

Parameters:
selectList - List containing all the selected packages.

clearSelection

public void clearSelection()
Clears all the selections in all the views.



Copyright © 2003 ELCA Informatique SA. All Rights Reserved.