Examples of NavigationController


Examples of blackberry.web.widget.bf.navigationcontroller.NavigationController

      // Check for the Touch down event
        if( message.getEvent() == TouchEvent.DOWN ){
         
          // Check if navigation mode is turned on
          if( getBrowserFieldScreen().getAppNavigationMode() ){
            NavigationController navControl =
              getBrowserFieldScreen().getNavigationController();
            // Deselect currently focused node
            if( navControl != null ){
              navControl.deselectFocusedNode();
            }
          }
        }     
    return false;
    }   
View Full Code Here

Examples of blackberry.web.widget.bf.navigationcontroller.NavigationController

                    | Manager.HORIZONTAL_SCROLLBAR );

            // navController depends on navExtension. Initialize navExtension first
            _navigationJS = new NavigationExtension();
            _navigationExtension = new NavigationNamespace( this, (WidgetFieldManager) _manager );
            _navigationController = new NavigationController( this );
        } else {
            _manager = new VerticalFieldManager( Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR | Manager.HORIZONTAL_SCROLL
                    | Manager.HORIZONTAL_SCROLLBAR );
        }
View Full Code Here

Examples of com.extjs.gxt.samples.explorer.client.mvc.NavigationController

  }

  private void buildApp() {
    dispatcher = Dispatcher.get();
    dispatcher.addController(new AppController());
    dispatcher.addController(new NavigationController());
    dispatcher.addController(new ContentController());
    dispatcher.dispatch(AppEvents.Init);

    String hash = Window.Location.getHash();
View Full Code Here

Examples of org.geomajas.puregwt.client.map.controller.NavigationController

    MapGadgetRenderer mapGadgetRenderer = new MapGadgetRenderer();
    eventBus.addHandler(ViewPortChangedHandler.TYPE, mapGadgetRenderer);
    eventBus.addHandler(MapResizedEvent.TYPE, mapGadgetRenderer);

    setFallbackController(new NavigationController());

    Command commandRequest = new Command(GetMapConfigurationRequest.COMMAND);
    commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applicationId));
    CommandService cmdService = new CommandService();
    cmdService.execute(commandRequest, new CommandCallback() {
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.NavigationController

  }

  public static ViewController ensureStopIsSelected(ViewController controller,
      String stopId) {

    NavigationController nav = controller.getNavigationController();
    ViewController next = nav.getNextController(controller);

    if (next != null) {

      String currentStopId = Actions.getStopIdForViewController(next);
      if (currentStopId != null && currentStopId.equals(stopId))
        return next;

      // Otherwise, clear the existing view stack
      nav.popToViewController(controller);
    }

    return Actions.showArrivalsAndDeparturesForStop(nav, stopId);
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.NavigationController

    }

    // If we've made it this far, it means we didn't find a match. Let's clear
    // the remainder of the view stack
    ListViewController vc = getListViewController();
    NavigationController nav = vc.getNavigationController();
    nav.popToViewController(vc);
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.NavigationController

  public MobileApplication() {

    TabBarController tabs = MobileApplicationContext.getRootController();

    NavigationController maps = createNavigationController("map", "Map",
        _resources.getCrossHairsIcon(),
        MobileApplicationContext.getMapViewController());

    NavigationController bookmarks = createNavigationController("bookmarks",
        "Bookmarks", _resources.getBookmarksIcon(),
        new BookmarksViewController());

    NavigationController recentStops = createNavigationController("recent",
        "Recent", _resources.getClockIcon(), new RecentStopsViewController());

    NavigationController search = createNavigationController("search",
        "Search", _resources.getMagnifyingGlassIcon(),
        new SearchViewController());

    tabs.addViewController(maps);
    tabs.addViewController(bookmarks);
    tabs.addViewController(recentStops);
    tabs.addViewController(search);

    tabs.addVieControllerSelectedHandler(new ViewControllerSelectedHandler() {
      @Override
      public void handleViewControllerSelected(ViewControllerSelectedEvent event) {
        NavigationController nav = (NavigationController) event.getViewController();
        nav.popToRootViewController();
      }
    });

    setRootViewController(tabs);
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.NavigationController

      String title, ImageResource img, ViewController firstView) {

    Image image = new Image(img.getURL(), img.getLeft(), img.getTop(),
        img.getWidth(), img.getHeight());

    NavigationController navigationController = new NavigationController();
    navigationController.getTabBarItem().setName(title);
    navigationController.getTabBarItem().setImage(image);
    navigationController.getNavigationItem().setId(id);
    navigationController.getNavigationItem().setTitle(title);
    navigationController.pushViewController(firstView);
    return navigationController;
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.NavigationController

  }

  @Override
  public void retrieveContext(List<String> path, Map<String, String> context) {
    ListViewController controller = getListViewController();
    NavigationController nav = controller.getNavigationController();
    ViewController next = nav.getNextController(controller);
    String stopId = Actions.getStopIdForViewController(next);
    if (stopId != null)
      path.add(stopId);
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.NavigationController

      bookmark.setStopId(_data.getStop().getId());
      bookmark.setName(_data.getStop().getName());
      BookmarkViewController vc = new BookmarkViewController(bookmark, true);

      ListViewController lvc = getListViewController();
      NavigationController nav = lvc.getNavigationController();
      nav.pushViewController(vc);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.