Examples of WebappServiceAsync


Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

  // @Test
  // This test is disabled until we figure out how to setup mocking correctly
  public void test() {

    WebappServiceAsync webapp = _service.getWebappService();
    Go go = new Go();

    Mockito.doAnswer(go).when(webapp).getStops(Mockito.<SearchQueryBean> any(),
        Mockito.<AsyncCallback<StopsBean>> any());
    CoordinateBounds bounds = new CoordinateBounds(0.04, 0.04, 0.6, 0.6);
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

   ****/

  private class DataRequestTimer extends Timer {
    @Override
    public void run() {
      WebappServiceAsync service = WebappServiceAsync.SERVICE;
      service.getArrivalsByStopId(_stopId, _arrivalsAndDeparturesHandler);
    }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

    } else {

      for (LocalSearchResult result : results)
        _placeResults.put(result.getId(), result);

      WebappServiceAsync service = WebappServiceAsync.SERVICE;
      service.getLocalPathsToStops(_constraints.getConstraints(), _travelTimes,
          results, _placeHandler);
    }
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

    map.setScrollWheelZoomEnabled(true);
    panel.add(map);
   
    StyleInjector.inject(_css.getText());

    WebappServiceAsync service = WebappServiceAsync.SERVICE;
    service.getAgencies(new AgencyHandler(map));   
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

    TripsForBoundsQueryBean query = new TripsForBoundsQueryBean();
    query.setBounds(bounds);
    query.setTime(System.currentTimeMillis());
    query.getInclusion().setIncludeTripBean(true);

    WebappServiceAsync service = WebappServiceAsync.SERVICE;
    service.getTripsForBounds(query, _handler);
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

  public void getDirectionsToPlace(LocalSearchResult place) {

    _stateEvents.fireModelChange(new StateEvent(new TripPlansState()));

    WebappServiceAsync service = WebappServiceAsync.SERVICE;

    LatLng fromPoint = getQueryLocation();
    CoordinatePoint from = new CoordinatePoint(fromPoint.getLatitude(),
        fromPoint.getLongitude());
    CoordinatePoint to = new CoordinatePoint(place.getLat(), place.getLon());
    long time = getQueryTime();
    TransitShedConstraintsBean constraints = getQueryConstraints();

    service.getTripsBetween(from, to, time, constraints.getConstraints(),
        new TripPlanHandler());
  }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

        LatLng location = model.getLocation();
        long time = model.getTime();
        TransitShedConstraintsBean constraints = model.getConstraints();
        ConstraintsBean c = constraints.getConstraints();
        WebappServiceAsync service = WebappServiceAsync.SERVICE;

        int timeSegmentSize = (c.getMaxTripDuration() 600);

        CoordinatePoint p = new CoordinatePoint(location.getLatitude(),
            location.getLongitude());
        service.getMinTravelTimeToStopsFrom(p, time, constraints,
            timeSegmentSize, _minTransitTimeResultHandler);
      }
    }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.rpc.WebappServiceAsync

   * Private Methods
   ****/

  private void refresh() {
    System.out.println("refresh");
    WebappServiceAsync service = WebappServiceAsync.SERVICE;
    service.getArrivalsByStopId(_stopId, _stopHandler);
  }
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.