Package org.jboss.errai.ui.nav.client.local.spi

Examples of org.jboss.errai.ui.nav.client.local.spi.PageNode


  @PostConstruct
  private void init() {
    History.addValueChangeHandler(new ValueChangeHandler<String>() {
      @Override
      public void onValueChange(ValueChangeEvent<String> event) {
        PageNode page = navGraph.getPage(event.getValue());
        makePageVisible(page);
      }
    });

    String initialToken = History.getToken();
    PageNode initialPage = navGraph.getPage(initialToken);
    if (initialPage == null) {
      initialPage = navGraph.getPage(""); // Default page
    }
    goTo(initialPage);
  }
View Full Code Here


  /**
   * Goes to
   * @param toPage
   */
  public void goTo(Class<? extends Widget> toPage) {
    PageNode toPageInstance = navGraph.getPage(toPage);
    goTo(toPageInstance);
  }
View Full Code Here

TOP

Related Classes of org.jboss.errai.ui.nav.client.local.spi.PageNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.