コード例 #1
0
 /**
  * Retrieves list of Direction stops from Model and passes over to the View updateStops method
  *
  * @throws ServiceUnavailableException
  */
 private void updateDirectionStopsTable(Direction direction) throws ServiceUnavailableException {
   String[][] stopList =
       mainModel.getRouteStopsArray(
           FindStopsHelper.identifyStopsForDirection(direction, mainModel.getAllStopsList()));
   mainView.enableRefresh(stopsExist(stopList.length));
   mainView.updateStopsTable(stopList);
 }
コード例 #2
0
 /**
  * Retrieves list of Route stops from Model and passes over to the View updateStops method
  *
  * @throws ServiceUnavailableException
  */
 private void updateRouteStopsTable(ArrayList<Stop> stopList) throws ServiceUnavailableException {
   mainView.updateStopsTable(mainModel.getRouteStopsArray(stopList));
 }