Package org.onebusaway.webapp.gwt.viewkit

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


  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))
View Full Code Here


    try {
      int bookmarkId = Integer.parseInt(rawBookmarkId);
      for (Bookmark bookmark : _bookmarks) {
        if (bookmark.getId() == bookmarkId) {
          String stopId = bookmark.getStopId();
          ViewController next = Actions.ensureStopIsSelected(getListViewController(), stopId);
          next.handleContext(path, context);
          return;
        }
      }
    } catch (NumberFormatException ex) {
      System.err.println("invalid bookmark id=" + rawBookmarkId);
View Full Code Here

   
    if( path.isEmpty() )
      return;
   
    String stopId = path.remove(0);
    ViewController next = Actions.ensureStopIsSelected(getListViewController(), stopId);
    next.handleContext(path, context);
  }
View Full Code Here

  @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

TOP

Related Classes of org.onebusaway.webapp.gwt.viewkit.ViewController

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.