Package io.jmix.tabbedmode.event
Class LocationChangeEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.tabbedmode.event.LocationChangeEvent
- All Implemented Interfaces:
Serializable
public class LocationChangeEvent
extends org.springframework.context.ApplicationEvent
The event that is fired each time the location changes by
RouteSupport
bean.
The event can be handled only in View
controllers of the active UI
.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionLocationChangeEvent
(com.vaadin.flow.component.UI source, com.vaadin.flow.router.Location location) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.router.Location
Returns the location associated with the event.com.vaadin.flow.component.UI
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
location
protected final com.vaadin.flow.router.Location location
-
-
Constructor Details
-
LocationChangeEvent
public LocationChangeEvent(com.vaadin.flow.component.UI source, com.vaadin.flow.router.Location location)
-
-
Method Details
-
getSource
public com.vaadin.flow.component.UI getSource()- Overrides:
getSource
in classEventObject
-
getLocation
public com.vaadin.flow.router.Location getLocation()Returns the location associated with the event.- Returns:
- the location that triggered the event
-