Package org.vaadin.spring.events
Class Event<T>
java.lang.Object
org.vaadin.spring.events.Event<T>
- All Implemented Interfaces:
Serializable
A class that represents an event that has been published on an
EventBus.- Author:
- Petter Holmström (petter@vaadin.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the event bus on which the event was originally published.Gets the payload of the event.getScope()Gets the scope of the event.Gets the object that published the event on the event bus.longGets the timestamp when the event was published on the event bus.getTopic()Gets the string which specifies the topic of the event on the event bus.toString()
-
Constructor Details
-
Event
-
Event
-
-
Method Details
-
getEventBus
Gets the event bus on which the event was originally published.- Returns:
- the event bus, never
null.
-
getScope
Gets the scope of the event.- Returns:
- the scope, never
null.
-
getSource
Gets the object that published the event on the event bus.- Returns:
- the source of the event, never
null.
-
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
Gets the payload of the event.- Returns:
- the payload, never
null.
-
toString
-