com.vaadin.flow.router.

Class RoutesChangedEvent

  • All Implemented Interfaces:

    Serializable


    public class RoutesChangedEvent
    extends EventObject

    Result class containing the removed and added routes for the latest configuration.

    Since:

    1.3

    See Also:

    Serialized Form

    • 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 routes

        removed - list of all the removed routes

        Throws:

        IllegalArgumentException - if source is null.

    • Method Detail

      • 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