Examples of StopSelectionBean


Examples of org.onebusaway.presentation.model.StopSelectionBean

    _locationNameSplitStrategy = locationNameSplitStrategy;
  }

  public StopSelectionBean getSelectedStops(StopsForRouteBean stopsForRoute,
      List<Integer> selectionIndices) throws InvalidSelectionServiceException {
    StopSelectionBean selection = new StopSelectionBean();
    StopSelectionTreeBean tree = getStopsForRouteAsStopSelectionTree(stopsForRoute);
    visitTree(tree, selection, selectionIndices, 0);
    return selection;
  }
View Full Code Here

Examples of org.onebusaway.presentation.model.StopSelectionBean

  @Override
  public String execute() throws Exception {

    StopsForRouteBean stopsForRoute = _transitDataService.getStopsForRoute(_route.getId());
    List<Integer> selectionIndices = Collections.emptyList();
    StopSelectionBean selection = _stopSelectionService.getSelectedStops(
        stopsForRoute, selectionIndices);
    List<NameBean> names = new ArrayList<NameBean>(selection.getNames());

    _navigation = new NavigationBean();
    _navigation.setRoute(_route);
    _navigation.setStopsForRoute(stopsForRoute);
    _navigation.setSelectionIndices(selectionIndices);
    _navigation.setCurrentIndex(0);
    _navigation.setSelection(selection);
    _navigation.setNames(names);

    if (selection.hasStop()) {
      _stop = selection.getStop();
      return "stopFound";
    }

    return SUCCESS;
  }
View Full Code Here

Examples of org.onebusaway.presentation.model.StopSelectionBean

    List<Integer> indices = new ArrayList<Integer>(
        _navigation.getSelectionIndices());
    indices.add(_index);

    StopSelectionBean selection = _stopSelectionService.getSelectedStops(
        _navigation.getStopsForRoute(), indices);

    List<NameBean> names = new ArrayList<NameBean>(selection.getNames());

    _navigation.setSelectionIndices(indices);
    _navigation.setCurrentIndex(0);
    _navigation.setSelection(selection);
    _navigation.setNames(names);

    if (selection.hasStop()) {
      _stop = selection.getStop();
      return "stopFound";
    }

    return SUCCESS;
  }
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.