org.onebusaway.webapp.gwt.stop_and_route_selection
Class AbstractStopAndRouteSelectionWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.onebusaway.webapp.gwt.stop_and_route_selection.AbstractStopAndRouteSelectionWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
BookmarkEditWidget, RefineViewWidget

public class AbstractStopAndRouteSelectionWidget
extends com.google.gwt.user.client.ui.Composite


Nested Class Summary
static interface AbstractStopAndRouteSelectionWidget.MyStyle
           
 class AbstractStopAndRouteSelectionWidget.StopFinderWidgetExtension
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 com.google.gwt.user.client.ui.Anchor _addStopAnchor
           
protected  Map<String,Boolean> _routeSelectionById
           
 com.google.gwt.user.client.ui.FlowPanel _routesPanel
           
protected  Map<String,StopBean> _stopsById
           
 com.google.gwt.user.client.ui.FlowPanel _stopsPanel
           
 AbstractStopAndRouteSelectionWidget.MyStyle style
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractStopAndRouteSelectionWidget()
           
 
Method Summary
 void addStop(StopBean stop)
           
 void handleAddStopClick(com.google.gwt.event.dom.client.ClickEvent e)
           
protected  void initialize()
           
protected  void refresh()
           
 void removeStop(StopBean stop)
           
protected  void setStopsAndRoutes(Collection<String> stopIds, Collection<String> routeIds)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

style

@UiField
public AbstractStopAndRouteSelectionWidget.MyStyle style

_addStopAnchor

@UiField
public com.google.gwt.user.client.ui.Anchor _addStopAnchor

_stopsPanel

@UiField
public com.google.gwt.user.client.ui.FlowPanel _stopsPanel

_routesPanel

@UiField
public com.google.gwt.user.client.ui.FlowPanel _routesPanel

_stopsById

protected Map<String,StopBean> _stopsById

_routeSelectionById

protected Map<String,Boolean> _routeSelectionById
Constructor Detail

AbstractStopAndRouteSelectionWidget

public AbstractStopAndRouteSelectionWidget()
Method Detail

addStop

public void addStop(StopBean stop)

removeStop

public void removeStop(StopBean stop)

handleAddStopClick

@UiHandler(value="_addStopAnchor")
public void handleAddStopClick(com.google.gwt.event.dom.client.ClickEvent e)

initialize

protected void initialize()

setStopsAndRoutes

protected void setStopsAndRoutes(Collection<String> stopIds,
                                 Collection<String> routeIds)

refresh

protected void refresh()


Copyright © 2011 OneBusAway. All Rights Reserved.