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

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


      SearchProgressState sps = (SearchProgressState) state;
      //_progressBar.setProgress(sps.getPercentComplete());
    } else if (state instanceof SearchCompleteState) {
      _progressPanel.setVisible(false);
    } else if (state instanceof PlacesChangedState) {
      PlacesChangedState pcs = (PlacesChangedState) state;
      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


      active.add(entries.get(indexFrom + i));

    if (!_activeEntries.equals(active)) {
      _activeEntries = active;

      _events.fireModelChange(new StateEvent(new PlacesChangedState(this)));
    }
  }
View Full Code Here

      State state = event.getState();

      if (state instanceof SearchStartedState) {
        clear();
      } else if (state instanceof PlacesChangedState) {
        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

TOP

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

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.