List of usage examples for com.google.gwt.gwtpages.client.applicationpresenter CompositeLayoutApplicationPresenter CompositeLayoutApplicationPresenter
public CompositeLayoutApplicationPresenter(String defaultToken)
From source file:com.google.gwt.gwtpages.demo.client.GWT_Pages_Demo.java
/** * This is the entry point method./*w w w. j av a2s .c o m*/ */ public void onModuleLoad() { // composite application presenter for use with the layouts demo page CompositeLayoutApplicationPresenter presenter = new CompositeLayoutApplicationPresenter( PageConstants.LAYOUT_DEFAULT).register(PageConstants.LAYOUT_DEFAULT, new DefaultLayoutPage()) .register(PageConstants.LAYOUT_NONE, new NoLayoutPage()) .register(PageConstants.LAYOUT_NAV_RIGHT, new RightNavLayoutPage()); // initialize the pages settings Pages.init((DemoPageLoader) GWT.create(DemoPageLoader.class), // the class responsible for mapping page tokens to pages presenter, // the component that will actually render the pages new HandlerManager(null), true) // the event bus .addDefaultEventHandlers().add(this); // add default behavior if desired // make the initial page show up (and check the history token to go directly to a requested page and bypass the start // page if necessary Pages.get().showStartPage(true); }