Class Event<T>

java.lang.Object
org.vaadin.spring.events.Event<T>
All Implemented Interfaces:
Serializable

public class Event<T> extends Object implements Serializable
A class that represents an event that has been published on an EventBus.
Author:
Petter Holmström (petter@vaadin.com)
See Also:
  • Constructor Details

  • Method Details

    • getEventBus

      public EventBus getEventBus()
      Gets the event bus on which the event was originally published.
      Returns:
      the event bus, never null.
    • getScope

      public EventScope getScope()
      Gets the scope of the event.
      Returns:
      the scope, never null.
    • getSource

      public Object getSource()
      Gets the object that published the event on the event bus.
      Returns:
      the source of the event, never null.
    • getTopic

      public String getTopic()
      Gets the string which specifies the topic of the event on the event bus.
      Returns:
      the topic of the event, never null.
    • getTimestamp

      public long getTimestamp()
      Gets the timestamp when the event was published on the event bus.
      Returns:
      the timestamp.
    • getPayload

      public T getPayload()
      Gets the payload of the event.
      Returns:
      the payload, never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object