Interface Observer


public interface Observer
Used by the notification mechanism: objects which are used to observe state changes have to implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    eventObserved(Event theEvent)
    This method is invoked by the observed object when a state change occurs.
  • Method Details

    • eventObserved

      void eventObserved(Event theEvent)
      This method is invoked by the observed object when a state change occurs.
      Parameters:
      theEvent - the event which caused the state change.