Package org.onebusaway.webapp.gwt.mobile_application.model

Examples of org.onebusaway.webapp.gwt.mobile_application.model.Bookmark


      row.setStyle(ListViewRowStyle.DEFAULT);
      row.setText("No bookmarks");
      return row;
    }

    Bookmark bookmark = _bookmarks.get(rowIndex);

    ListViewRow row = new ListViewRow();
    row.setStyle(ListViewRowStyle.DEFAULT);
    row.setText(bookmark.getName());

    return row;
  }
View Full Code Here


  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

      int sectionIndex, int rowIndex) {

    if (_bookmarks.isEmpty())
      return;

    Bookmark bookmark = _bookmarks.get(rowIndex);
    String stopId = bookmark.getStopId();

    Actions.showArrivalsAndDeparturesForStop(
        listViewController.getNavigationController(), stopId);
  }
View Full Code Here

  @Override
  public void onRowClick(ListViewController listViewController,
      int sectionIndex, int rowIndex) {

    if (sectionIndex == 2) {
      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.mobile_application.model.Bookmark

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.