@Override public Window navigateInWindow(Consumer<ViewWindowConfigurator> windowConfiguration) throws ViewNavigationException { return navigator.navigateInWindow(viewName, windowConfiguration, parameters); }
/** * Navigate to the {@link View} identified by given <code>viewName</code> using the same behaviour of * {@link #navigateTo(String, Map)} but rendering the View contents in an application Window, using default Window * configuration. * @param viewName View name * @param parameters Optional view parameters * @return The UI Window in which the View is displayed * @throws ViewNavigationException View with given name cannot be found or other view handling error */ default Window navigateInWindow(String viewName, Map<String, Object> parameters) throws ViewNavigationException { return navigateInWindow(viewName, null, parameters); }
/** * Navigate to the {@link View} identified by given <code>viewName</code> using the same behaviour of * {@link #navigateTo(String, Map)} but rendering the View contents in an application Window, using default Window * configuration. * @param viewName View name * @return The UI Window in which the View is displayed * @throws ViewNavigationException View with given name cannot be found or other view handling error */ default Window navigateInWindow(String viewName) throws ViewNavigationException { return navigateInWindow(viewName, null, null); }
/** * Navigate to the {@link View} identified by given <code>viewName</code> using the same behaviour of * {@link #navigateTo(String, Map)} but rendering the View contents in an application Window, using optional * <code>windowConfiguration</code> to setup Window features. * @param viewName View name * @param windowConfiguration View Window configurator * @return The UI Window in which the View is displayed * @throws ViewNavigationException View with given name cannot be found or other view handling error */ default Window navigateInWindow(String viewName, Consumer<ViewWindowConfigurator> windowConfiguration) throws ViewNavigationException { return navigateInWindow(viewName, windowConfiguration, null); }
public void nav2() { // tag::nav2[] ViewNavigator navigator = getViewNavigator(); navigator.navigateInWindow("myView"); // <1> Map<String, Object> parameters = new HashMap<>(); parameters.put("parameter1", "test"); parameters.put("parameter2", 34.5); navigator.navigateInWindow("myView", windowConfig -> { windowConfig.fullWidth(); windowConfig.styleName("my-window-style"); }, parameters); // <2> // end::nav2[] }