Class ObserverEvent

java.lang.Object
com.nomagic.magicreport.engine.ObserverEvent
All Implemented Interfaces:
Serializable

@OpenApiAll public class ObserverEvent extends Object implements Serializable
A "ObserverEvent" event gets delivered whenever a engine has changed. A ObserverEvent object is sent as an argument to the AbstractTemplateEngine.notifyObservers(Object) method.
Since:
Aug 9, 2007
See Also:
  • Constructor Details

    • ObserverEvent

      public ObserverEvent(Object source, String id, String name, Object object)
      Constructs a new ObserverEvent.
      Parameters:
      source - The engine that fired the event.
      id - The id of the event that was changed.
      name - The programmatic name of the event that was changed.
      object - The new value of the event
  • Method Details

    • getSource

      public Object getSource()
      Return a source.
      Returns:
      the source
    • getId

      public String getId()
      Return a id.
      Returns:
      the id
    • getName

      public String getName()
      Return a name.
      Returns:
      the name
    • getObject

      public Object getObject()
      Return a object.
      Returns:
      the object