Package com.gwtmobile.ui.client.page.PageHistory

Examples of com.gwtmobile.ui.client.page.PageHistory.NavigateInfo


    if (direction != TransitionDirection.To) {
      return;
    }
    final Page to;
    final PageHistory pageHistory = PageHistory.Instance;
    final NavigateInfo info = pageHistory.getNavigateInfo();

    if (false == info.isGoBack()) { // goto
      to = this;
      // TODO: change to use scheduler deferred command.
      Timer timer = new Timer() {
        @Override
        public void run() {
          to.onNavigateTo(info.getFromPage(), info.getValue());
          to.initNavigationIfRequired();
        }
      };
      timer.schedule(1);
    } else { // goback
      to = pageHistory.current();
      Timer timer = new Timer() {
        @Override
        public void run() {
          to.onNavigateBack(info.getFromPage(), info.getValue());
          to.initNavigationIfRequired();
        }
      };
      timer.schedule(1);
    }
View Full Code Here

TOP

Related Classes of com.gwtmobile.ui.client.page.PageHistory.NavigateInfo

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.