/** * Remove the given navigation target route registration. Path where the * navigation target was may still be usable, e.g. we remove target with url * param and there is left a non param target, but will not return the * removed target. * <p> * Note! this will remove target route and if possible any * {@link RouteAlias} route that can be found for the class. * * @param navigationTarget * navigation target class to remove */ public void removeRoute(Class<? extends Component> navigationTarget) { handledRegistry.removeRoute(navigationTarget); }
/** * Remove all registrations for given path. This means that any navigation * target registered on the given path will be removed. But if a removed * navigationTarget for the path exists it is then stored with a new main * path so it can still get a resolved url. * <p> * E.g. path "home" contains HomeView and DetailsView[String path param] * both will be removed. * <p> * Note! The restored path will be the first found match for all paths that * are registered. * * @param path * path for which to remove all navigation targets */ public void removeRoute(String path) { handledRegistry.removeRoute(path); }
/** * Remove only the specified navigationTarget from the path and not the * whole path if other targets exist for path. If no other targets exist * whole route will be cleared. * <p> * This will leave any other targets for path e.g. removing the wildcard * path will still leave the optional target. * <p> * Note! If another path exists for the removed navigation target it will * get a new main path so it can still get a resolved url. The restored path * will be the first found match for all paths that are registered. * * @param path * path to remove from registry * @param navigationTarget * path navigation target to remove */ public void removeRoute(String path, Class<? extends Component> navigationTarget) { handledRegistry.removeRoute(path, navigationTarget); }