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

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


      PagedResultsModel model = pcs.getModel();
      if (model.getSelectedResult() == null)
        _minimized = false;
      refresh();
    } else if (state instanceof SelectedPlaceChangedState) {
      SelectedPlaceChangedState pcs = (SelectedPlaceChangedState) state;
      if (pcs.getSelectedResult() == null) {
        _minimized = false;
        refresh();
      }
    } else if (state instanceof TripPlansState) {
      _minimized = true;
View Full Code Here


    return _activeEntries;
  }

  public void setSelectedResult(TimedLocalSearchResult result) {
    _selectedResult = result;
    _events.fireModelChange(new StateEvent(new SelectedPlaceChangedState(_selectedResult)));
  }
View Full Code Here

      State state = event.getState();

      if (state instanceof SearchStartedState) {
        clear();
      } else if (state instanceof SelectedPlaceChangedState) {
        SelectedPlaceChangedState spcs = (SelectedPlaceChangedState) state;
        if (spcs.getSelectedResult() == null) {
          clear();
        }
      }
    }
View Full Code Here

        PlacesChangedState pcs = (PlacesChangedState) state;
        PagedResultsModel model = pcs.getModel();
        if (model.getSelectedResult() == null)
          setVisible(true);
      } else if (state instanceof SelectedPlaceChangedState) {
        SelectedPlaceChangedState pcs = (SelectedPlaceChangedState) state;
        if (pcs.getSelectedResult() == null) {
          setVisible(true);
        }
      } else if (state instanceof TripPlansState) {
        setVisible(false);
      }
View Full Code Here

    if (state instanceof SearchStartedState) {
      reset();
    } else if (state instanceof SelectedPlaceChangedState) {

      SelectedPlaceChangedState placeChange = (SelectedPlaceChangedState) state;
      reset();

      TimedLocalSearchResult result = placeChange.getSelectedResult();

      if (result != null) {

        LocalSearchResult entry = result.getLocalSearchResult();
        LatLng point = LatLng.newInstance(entry.getLat(), entry.getLon());
View Full Code Here

TOP

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

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.