Package org.onebusaway.webapp.gwt.viewkit

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


      System.err.println("invalid bookmark id=" + rawBookmarkId);
    }

    // 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


    nav.popToViewController(vc);
  }

  @Override
  public void retrieveContext(List<String> path, Map<String, String> context) {
    ListViewController vc = getListViewController();
    IndexPath index = vc.getSelectionIndex();
    System.out.println(index);
    if (index != null) {
      Bookmark bookmark = _bookmarks.get(index.getRow());
      path.add(Integer.toString(bookmark.getId()));
    }
View Full Code Here

    next.handleContext(path, context);
  }

  @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

      Bookmark bookmark = new Bookmark();
      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

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

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.