April 2018
Intermediate to advanced
202 pages
4h 48m
English
You might have heard about the Navigator class in Vaadin Framework. In short, the Navigator class allows you to pair URI fragments with UI components. When the fragment part changes in the browser, the associated UI component is rendered. It also allows you to programmatically navigate to a specific UI component by specifying its associated fragment. For example:
public class VaadinUI extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
Navigator navigator = new Navigator(this, this);
navigator.addView("view1", new View1());
navigator.addView("view2", new View2());
}
}
When you create a Navigator, you specify the UI to which the Navigator is attached and a ComponentContainer ...
Read now
Unlock full access