We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Class RoutesChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.router.RoutesChangedEvent
-
All Implemented Interfaces:
public class RoutesChangedEvent extends EventObject
Result class containing the removed and added routes for the latest configuration.
Since:
1.3
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description RoutesChangedEvent(RouteRegistry source, List<RouteBaseData<?>> added, List<RouteBaseData<?>> removed)
Constructs a prototypical Event.
-
Method Summary
All Methods Modifier and Type Method and Description List<RouteBaseData<?>>
getAddedRoutes()
Get all routes added for this change.
List<RouteBaseData<?>>
getRemovedRoutes()
Get all routes removed in this change.
RouteRegistry
getSource()
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
RoutesChangedEvent
public RoutesChangedEvent(RouteRegistry source, List<RouteBaseData<?>> added, List<RouteBaseData<?>> removed)
Constructs a prototypical Event.
Parameters:
source
- The object on which the Event initially occurred.added
- list of all the added routesremoved
- list of all the removed routesThrows:
IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getSource
public RouteRegistry getSource()
Overrides:
getSource
in classEventObject
-
getAddedRoutes
public List<RouteBaseData<?>> getAddedRoutes()
Get all routes added for this change.
Returns:
immutable list of all added routes
-
getRemovedRoutes
public List<RouteBaseData<?>> getRemovedRoutes()
Get all routes removed in this change.
Returns:
immutable list of all removed routes
-
-