List of usage examples for com.google.gwt.gwtpages.client GotoPageCommand getSession
public PageRequestSession getSession()
From source file:com.google.gwt.gwtpages.demo.client.pages.LayoutsPage.java
/** * The application presenters are defined in the composite application presenter {@link GWT_Pages_Demo} *//*www . j av a 2s . co m*/ private void showStandardLayout() { GotoPageCommand cmd = pages.gotoPage(PageConstants.PAGE_LAYOUTS); cmd.getSession().put(CompositeLayoutApplicationPresenter.PRESENTER_TOKEN_KEY, PageConstants.LAYOUT_DEFAULT); cmd.execute(); }
From source file:com.google.gwt.gwtpages.demo.client.pages.LayoutsPage.java
/** * The application presenters are defined in the composite application presenter {@link GWT_Pages_Demo} *///from w w w .j a va 2 s . com private void showNoLayout() { // you can also use an Oracle to determine the layout. You really wouldn't have the need to use // it here but could use it for your page loader if you didn't want to register a static presenter // token - We'll do it here as an example GotoPageCommand cmd = pages.gotoPage(PageConstants.PAGE_LAYOUTS); cmd.getSession().put(CompositeLayoutApplicationPresenter.TokenProvider.class, new CompositeLayoutApplicationPresenter.TokenProvider() { @Override public String getPresenterToken(LoadedPageContainer page, PageParameters parameters, PageRequestSession session) { return PageConstants.LAYOUT_NONE; } }); cmd.execute(); }