Package org.onebusaway.webapp.gwt.oba_application.control.state

Examples of org.onebusaway.webapp.gwt.oba_application.control.state.AddressLookupErrorState


    public void handleSingleResult(Place place) {
      setQueryLocationLookupResult(place);
    }

    public void handleNoResult() {
      _stateEvents.fireModelChange(new StateEvent(new AddressLookupErrorState(
          new ArrayList<Place>())));
    }
View Full Code Here


      _stateEvents.fireModelChange(new StateEvent(new AddressLookupErrorState(
          new ArrayList<Place>())));
    }

    public void handleMultipleResults(List<Place> locations) {
      _stateEvents.fireModelChange(new StateEvent(new AddressLookupErrorState(
          locations)));
    }
View Full Code Here

      _stateEvents.fireModelChange(new StateEvent(new AddressLookupErrorState(
          locations)));
    }

    public void handleError() {
      _stateEvents.fireModelChange(new StateEvent(new AddressLookupErrorState(
          new ArrayList<Place>())));
    }
View Full Code Here

    public void handleUpdate(StateEvent event) {
      State state = event.getState();

      if (state instanceof AddressLookupErrorState) {

        AddressLookupErrorState ales = (AddressLookupErrorState) state;
        List<Place> places = ales.getLocations();

        _widget.clear();
        _widget.setVisible(true);

        if (places.size() == 0) {
View Full Code Here

TOP

Related Classes of org.onebusaway.webapp.gwt.oba_application.control.state.AddressLookupErrorState

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.