List of usage examples for com.google.gwt.gwtpages.client GotoPageCommand execute
public void 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 ww . j a va2 s .c om*/ 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} *//*w w w. j av a 2s . c o m*/ 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(); }