public class RoutesChangedEvent extends EventObject
source
Constructor and Description |
---|
RoutesChangedEvent(RouteRegistry source,
List<RouteBaseData<?>> added,
List<RouteBaseData<?>> removed)
Constructs a prototypical Event.
|
Modifier and Type | Method and Description |
---|---|
List<Class<? extends Component>> |
getAddedNavigationTargets()
Get every single navigation targets of all added routes in this change.
|
List<RouteBaseData<?>> |
getAddedRoutes()
Get all routes added for this change.
|
List<String> |
getAddedURLs()
Get every single URL of all added routes in this change.
|
List<Class<? extends Component>> |
getRemovedNavigationTargets()
Get every single navigation targets of all removed routes in this change.
|
List<RouteBaseData<?>> |
getRemovedRoutes()
Get all routes removed in this change.
|
List<String> |
getRemovedURLs()
Get every single URL of all removed routes in this change.
|
RouteRegistry |
getSource() |
boolean |
isPathAdded(String path)
Determines if a route url was added for this change.
|
boolean |
isPathRemoved(String path)
Determines if a route url was removed for this change.
|
boolean |
isRouteAdded(Class<? extends Component> clazz)
Determines if a given route navigation target was added for this change.
|
boolean |
isRouteRemoved(Class<? extends Component> clazz)
Determines if a given route navigation target was removed for this
change.
|
toString
public RoutesChangedEvent(RouteRegistry source, List<RouteBaseData<?>> added, List<RouteBaseData<?>> removed)
source
- The object on which the Event initially occurred.added
- list of all the added routesremoved
- list of all the removed routesIllegalArgumentException
- if source is null.public RouteRegistry getSource()
getSource
in class EventObject
public List<RouteBaseData<?>> getAddedRoutes()
public List<RouteBaseData<?>> getRemovedRoutes()
public boolean isRouteAdded(Class<? extends Component> clazz)
clazz
- a route navigation targetpublic boolean isRouteRemoved(Class<? extends Component> clazz)
clazz
- a route navigation targetpublic boolean isPathAdded(String path)
path
- the URL of a routepublic boolean isPathRemoved(String path)
path
- the URL of a routepublic List<Class<? extends Component>> getAddedNavigationTargets()
public List<Class<? extends Component>> getRemovedNavigationTargets()
public List<String> getAddedURLs()
Copyright © 2025. All rights reserved.