final HorizontalSplitPanel rootLayout = new HorizontalSplitPanel();
rootLayout.setStyleName(Reindeer.SPLITPANEL_SMALL);
rootLayout.setSizeFull();
setContent(rootLayout);
final Navigator navigator = new Navigator(this, new ViewDisplay() {
@Override
public void showView(View view) {
System.out.println("Showing view " + view);
rootLayout.setSecondComponent((com.vaadin.ui.Component) view);
}
});
navigator.setErrorView(new ErrorView());
navigator.addProvider(viewProvider);
setNavigator(navigator);
rootLayout.setFirstComponent(sideBar);
rootLayout.setSplitPosition(150, Unit.PIXELS);
}