llnl.visit
Interface SimpleObserver

All Known Implementing Classes:
DualClients, EventLoop, TryLighting, TryQuery, ViewerProxy

public interface SimpleObserver

The SimpleObserver interface defines the methods that all observers of AttributeSubject objects must define.


Method Summary
 boolean GetUpdate()
          Returns that flag indicating whether or not Update() should be called in response to a state object's Notify().
 void SetUpdate(boolean val)
          Sets a flag in the implementing class that determines whether or not the Update() method should be called in response to the state object's Notify() method being called.
 void Update(AttributeSubject s)
          This method is called when an object observed by this object is modified and its observers are notified by the state object's Notify() method.
 

Method Detail

Update

void Update(AttributeSubject s)
This method is called when an object observed by this object is modified and its observers are notified by the state object's Notify() method.

Parameters:
s - The state object that caused the Update() method to be called.

SetUpdate

void SetUpdate(boolean val)
Sets a flag in the implementing class that determines whether or not the Update() method should be called in response to the state object's Notify() method being called.

Parameters:
val - true if the Update() method should be called in response to a Notify().

GetUpdate

boolean GetUpdate()
Returns that flag indicating whether or not Update() should be called in response to a state object's Notify().

Returns:
The flag indicating whether Update() should be called.