org.onebusaway.webapp.gwt.oba_application.control
Class CommonControlImpl

java.lang.Object
  extended by org.onebusaway.webapp.gwt.oba_application.control.CommonControlImpl
All Implemented Interfaces:
CommonControl
Direct Known Subclasses:
OneBusAwayStandardControlImpl

public abstract class CommonControlImpl
extends Object
implements CommonControl


Field Summary
protected  ContextHelper _contextHelper
          Control Layer
protected  int _contextIndex
           
protected  LocalSearchProvider _localSearchProvider
           
protected  ResultsModel _resultsModel
          Model Layer
protected  ModelEventSink<StateEvent> _stateEvents
           
 
Constructor Summary
CommonControlImpl()
           
 
Method Summary
 void clearActiveSearchResult()
           
 void filterResults(Filter<TimedLocalSearchResult> filter)
           
 void getDirectionsToPlace(LocalSearchResult place)
           
protected abstract  TransitShedConstraintsBean getQueryConstraints()
           
protected abstract  com.google.gwt.maps.client.geom.LatLng getQueryLocation()
          Protected Methods
 ModelListener<LocationQueryModel> getQueryModelHandler()
           
protected abstract  long getQueryTime()
           
 void handleContext(Context context)
          OneBusAwayStandardControl Interface
 void setActiveSearchResult(TimedLocalSearchResult result)
           
 void setContextManager(ContextManager contextManager)
           
 void setFilteredResultsModel(FilteredResultsModel filteredResultsModel)
           
 void setLocalSearchProvider(LocalSearchProvider provider)
           
 void setMinTransitTimeResultHandler(MinTransitTimeResultHandler handler)
           
 void setPagedResultsModel(PagedResultsModel model)
           
protected abstract  void setQueryLocationLookupResult(Place place)
           
 void setResultsModel(ResultsModel model)
           
 void setStateEvents(ModelEventSink<StateEvent> events)
           
 void setTripPlanModel(TripPlanModel tripModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.onebusaway.webapp.gwt.oba_application.control.CommonControl
search, setQueryLocation
 

Field Detail

_stateEvents

protected ModelEventSink<StateEvent> _stateEvents

_resultsModel

protected ResultsModel _resultsModel
Model Layer


_contextHelper

protected ContextHelper _contextHelper
Control Layer


_localSearchProvider

protected LocalSearchProvider _localSearchProvider

_contextIndex

protected int _contextIndex
Constructor Detail

CommonControlImpl

public CommonControlImpl()
Method Detail

setStateEvents

public void setStateEvents(ModelEventSink<StateEvent> events)

setContextManager

public void setContextManager(ContextManager contextManager)

getQueryModelHandler

public ModelListener<LocationQueryModel> getQueryModelHandler()

setResultsModel

public void setResultsModel(ResultsModel model)

setFilteredResultsModel

public void setFilteredResultsModel(FilteredResultsModel filteredResultsModel)

setPagedResultsModel

public void setPagedResultsModel(PagedResultsModel model)

setTripPlanModel

public void setTripPlanModel(TripPlanModel tripModel)

setMinTransitTimeResultHandler

public void setMinTransitTimeResultHandler(MinTransitTimeResultHandler handler)

setLocalSearchProvider

public void setLocalSearchProvider(LocalSearchProvider provider)

handleContext

public void handleContext(Context context)
OneBusAwayStandardControl Interface

Specified by:
handleContext in interface CommonControl

filterResults

public void filterResults(Filter<TimedLocalSearchResult> filter)
Specified by:
filterResults in interface CommonControl

setActiveSearchResult

public void setActiveSearchResult(TimedLocalSearchResult result)
Specified by:
setActiveSearchResult in interface CommonControl

clearActiveSearchResult

public void clearActiveSearchResult()
Specified by:
clearActiveSearchResult in interface CommonControl

getDirectionsToPlace

public void getDirectionsToPlace(LocalSearchResult place)
Specified by:
getDirectionsToPlace in interface CommonControl

getQueryLocation

protected abstract com.google.gwt.maps.client.geom.LatLng getQueryLocation()
Protected Methods


getQueryTime

protected abstract long getQueryTime()

getQueryConstraints

protected abstract TransitShedConstraintsBean getQueryConstraints()

setQueryLocationLookupResult

protected abstract void setQueryLocationLookupResult(Place place)


Copyright © 2011 OneBusAway. All Rights Reserved.