Method Summary |
|
public void | addObserver(Observer observer) Adds the specified Observer to the list of observers. |
protected void | clearChanged() Clears the changed flag for this Observable. |
public int | countObservers() Answers the number of Observers in the list of observers. |
public synchronized void | deleteObserver(Observer observer) Removes the specified Observer from the list of observers. |
public synchronized void | deleteObservers() Removes all Observers from the list of observers. |
public boolean | hasChanged() Answers the changed flag for this Observable. |
public void | notifyObservers() If hasChanged() returns true, calls the
update() method for every Observer in the list of
observers using null as the argument. |
public void | notifyObservers(Object data) If hasChanged() returns true, calls the
update() method for every Observer in the list of
observers using the specified argument. |
protected void | setChanged() Sets the changed flag for this Observable. |