Package com.googlecode.mgwt.examples.showcase.client.places

Examples of com.googlecode.mgwt.examples.showcase.client.places.HomePlace


  private void onPhoneNav(Place place, HistoryHandler historyHandler) {
    if (place instanceof AnimationDissolvePlace || place instanceof AnimationFadePlace || place instanceof AnimationFlipPlace || place instanceof AnimationPopPlace
        || place instanceof AnimationSlidePlace || place instanceof AnimationSlideUpPlace || place instanceof AnimationSwapPlace) {

      historyHandler.replaceCurrentPlace(new HomePlace());

      historyHandler.pushPlace(new AnimationPlace());

    } else {
      if (place instanceof AboutPlace) {
        historyHandler.replaceCurrentPlace(new HomePlace());

      } else {
        if (place instanceof AnimationPlace) {
          historyHandler.replaceCurrentPlace(new HomePlace());
        } else {
          if (place instanceof UIPlace) {
            historyHandler.replaceCurrentPlace(new HomePlace());
          } else {
            if (place instanceof UIPlace) {
              historyHandler.replaceCurrentPlace(new HomePlace());
            } else {

              if (place instanceof ButtonBarPlace || place instanceof GroupedCellListPlace || place instanceof CarouselPlace || place instanceof ButtonPlace
                  || place instanceof ElementsPlace || place instanceof FormsPlace || place instanceof PopupPlace || place instanceof ProgressBarPlace
                  || place instanceof ProgressIndicatorPlace || place instanceof PullToRefreshPlace || place instanceof ScrollWidgetPlace || place instanceof SearchBoxPlace
                  || place instanceof SliderPlace || place instanceof TabBarPlace) {
                historyHandler.replaceCurrentPlace(new HomePlace());

                historyHandler.pushPlace(new UIPlace());
              }

            }
View Full Code Here


  private void onTabletNav(Place place, HistoryHandler historyHandler) {
    if (place instanceof AnimationDissolvePlace || place instanceof AnimationFadePlace || place instanceof AnimationFlipPlace || place instanceof AnimationPopPlace
        || place instanceof AnimationSlidePlace || place instanceof AnimationSlideUpPlace || place instanceof AnimationSwapPlace) {

      historyHandler.replaceCurrentPlace(new HomePlace());

    } else {
      if (place instanceof AboutPlace) {
        historyHandler.replaceCurrentPlace(new HomePlace());
      } else {
        if (place instanceof AnimationPlace) {
          historyHandler.replaceCurrentPlace(new HomePlace());
        } else {
          if (place instanceof UIPlace) {
            historyHandler.replaceCurrentPlace(new HomePlace());
          } else {
            if (place instanceof UIPlace) {
              historyHandler.replaceCurrentPlace(new HomePlace());
            } else {

              if (place instanceof ButtonBarPlace || place instanceof GroupedCellListPlace || place instanceof CarouselPlace || place instanceof ButtonPlace
                  || place instanceof ElementsPlace || place instanceof FormsPlace || place instanceof PopupPlace || place instanceof ProgressBarPlace
                  || place instanceof ProgressIndicatorPlace || place instanceof PullToRefreshPlace || place instanceof ScrollWidgetPlace || place instanceof SearchBoxPlace
                  || place instanceof SliderPlace || place instanceof TabBarPlace) {
                historyHandler.replaceCurrentPlace(new HomePlace());

              }

            }
          }
View Full Code Here

    AppHistoryObserver historyObserver = new AppHistoryObserver();

    MGWTPlaceHistoryHandler historyHandler = new MGWTPlaceHistoryHandler(historyMapper, historyObserver);

    historyHandler.register(clientFactory.getPlaceController(), clientFactory.getEventBus(), new HomePlace());
    historyHandler.handleCurrentHistory();

  }
View Full Code Here

TOP

Related Classes of com.googlecode.mgwt.examples.showcase.client.places.HomePlace

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.