Java Code Examples for com.vaadin.flow.router.BeforeEnterEvent#forwardTo()

The following examples show how to use com.vaadin.flow.router.BeforeEnterEvent#forwardTo() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerSideForwardView.java    From flow with Apache License 2.0 5 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    if (Boolean.TRUE.equals(parameter)) {
        event.forwardTo("client-view");
    }

    parameter = null;
}
 
Example 2
Source File: JavaScriptBootstrapUITest.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo("client-view");
}
 
Example 3
Source File: JavaScriptBootstrapUITest.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo("clean");
}
 
Example 4
Source File: ErrorStateRendererTest.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo(InfiniteLoopNPEView.class);
}
 
Example 5
Source File: ErrorStateRendererTest.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo(HappyPathViewView.class);
}
 
Example 6
Source File: ServerSideForwardView.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo("client-view");
}
 
Example 7
Source File: ISELayout.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo(ISETargetView.class);
}
 
Example 8
Source File: PushLayout.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    if (FORWARD_PATH.equals(event.getLocation().getPath())) {
        event.forwardTo(ForwardPage.class);
    }
}
 
Example 9
Source File: ForwardToView.java    From flow with Apache License 2.0 4 votes vote down vote up
@Override
public void beforeEnter(BeforeEnterEvent event) {
    event.forwardTo("com.vaadin.flow.uitest.ui.BasicComponentView");
}