org.onebusaway.webapp.gwt.where_library.view
Class StopFinderPresenter

java.lang.Object
  extended by org.onebusaway.webapp.gwt.where_library.view.StopFinderPresenter
All Implemented Interfaces:
ContextListener, StopFinderConstants, StopFinderInterface

public class StopFinderPresenter
extends Object
implements StopFinderInterface, StopFinderConstants, ContextListener


Field Summary
 
Fields inherited from interface org.onebusaway.webapp.gwt.where_library.view.StopFinderConstants
KEY_BLOCK_ID, KEY_LATLON, KEY_MODE, KEY_QUERY, KEY_QUERY_LATLON, KEY_ROUTE, KEY_SCHEDULE_TYPE, KEY_SPAN, KEY_STOP_SEQUENCE_ID, KEY_UNIQUE, MODE_ADDRESS, MODE_LOCATION, MODE_QUERY, MODE_ROUTE, MODE_ROUTES, MODE_STOP_IDENTIFICAION, STOP_KEY
 
Constructor Summary
StopFinderPresenter()
          Public Methods
StopFinderPresenter(ContextManager contextManager)
           
 
Method Summary
 Context getCoordinateBoundsAsContext(CoordinateBounds bounds)
           
 String getCurrentViewAsUrl()
          StopFinderInterface
protected  OperationHandler getDefaultOperationHandler()
          Protected Methods
 String getStopQueryLink(String stopId)
           
 void initialize()
           
 void onContextChanged(Context context)
          ContextListener Interface
 void query(String query)
           
 void queryCurrentView()
           
 void queryLocation(com.google.gwt.maps.client.geom.LatLng location, int accuracy)
           
 void queryRoute(String routeId)
           
 void setContextManager(ContextManager contextManager)
           
 void setDefaultOperationHandler(OperationHandler handler)
           
 void setWidget(StopFinderWidget widget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopFinderPresenter

public StopFinderPresenter()
Public Methods


StopFinderPresenter

public StopFinderPresenter(ContextManager contextManager)
Method Detail

setContextManager

public void setContextManager(ContextManager contextManager)

setWidget

public void setWidget(StopFinderWidget widget)

initialize

public void initialize()

getCoordinateBoundsAsContext

public Context getCoordinateBoundsAsContext(CoordinateBounds bounds)

setDefaultOperationHandler

public void setDefaultOperationHandler(OperationHandler handler)

onContextChanged

public void onContextChanged(Context context)
ContextListener Interface

Specified by:
onContextChanged in interface ContextListener

getCurrentViewAsUrl

public String getCurrentViewAsUrl()
StopFinderInterface

Specified by:
getCurrentViewAsUrl in interface StopFinderInterface

queryCurrentView

public void queryCurrentView()
Specified by:
queryCurrentView in interface StopFinderInterface

query

public void query(String query)
Specified by:
query in interface StopFinderInterface

queryLocation

public void queryLocation(com.google.gwt.maps.client.geom.LatLng location,
                          int accuracy)
Specified by:
queryLocation in interface StopFinderInterface

queryRoute

public void queryRoute(String routeId)
Specified by:
queryRoute in interface StopFinderInterface

getStopQueryLink

public String getStopQueryLink(String stopId)
Specified by:
getStopQueryLink in interface StopFinderInterface

getDefaultOperationHandler

protected OperationHandler getDefaultOperationHandler()
Protected Methods



Copyright © 2012 OneBusAway. All Rights Reserved.