Observer

public interface Observer

Methods

notifyObserver

public boolean notifyObserver(String e, Observable sender)

Notify this observer that an event e has happened to the sender.

Parameters:
  • e

  • sender

Returns:

true, iff the Observable has to keep it in the list of observers.