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

java.lang.Object
  extended by org.onebusaway.webapp.gwt.where_library.view.ArrivalsAndDeparturesPresentaion

public class ArrivalsAndDeparturesPresentaion
extends Object


Constructor Summary
ArrivalsAndDeparturesPresentaion()
           
ArrivalsAndDeparturesPresentaion(boolean useDefaultResources)
           
 
Method Summary
 long getBestTime(ArrivalAndDepartureBean pab)
           
 String getMinutesElementId(ArrivalAndDepartureBean pab)
           
 String getMinutesLabel(ArrivalAndDepartureBean pab)
           
 String getStatusLabel(ArrivalAndDepartureBean pab)
          Returns a text label like "4 minutes late" or "departed 2 minutes early"
 String getStatusLabelStyle(ArrivalAndDepartureBean pab)
           
 String getTripHeadsign(ArrivalAndDepartureBean bean)
           
 boolean isLongRouteName(RouteBean route)
           
 boolean isNow(ArrivalAndDepartureBean pab)
           
 boolean isShowArrivals()
           
 boolean isShowFrequencyFrom(FrequencyBean frequency)
           
 void setMessages(ArrivalAndDepartureMessages messages)
           
 void setShowArrivals(boolean showArrivals)
           
 void setTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrivalsAndDeparturesPresentaion

public ArrivalsAndDeparturesPresentaion()

ArrivalsAndDeparturesPresentaion

public ArrivalsAndDeparturesPresentaion(boolean useDefaultResources)
Method Detail

setMessages

public void setMessages(ArrivalAndDepartureMessages messages)

setTime

public void setTime(long time)

setShowArrivals

public void setShowArrivals(boolean showArrivals)

isShowArrivals

public boolean isShowArrivals()

getTripHeadsign

public String getTripHeadsign(ArrivalAndDepartureBean bean)

getStatusLabel

public String getStatusLabel(ArrivalAndDepartureBean pab)
Returns a text label like "4 minutes late" or "departed 2 minutes early"

Parameters:
pab -
Returns:

getStatusLabelStyle

public String getStatusLabelStyle(ArrivalAndDepartureBean pab)

getBestTime

public long getBestTime(ArrivalAndDepartureBean pab)

getMinutesElementId

public String getMinutesElementId(ArrivalAndDepartureBean pab)

getMinutesLabel

public String getMinutesLabel(ArrivalAndDepartureBean pab)

isNow

public boolean isNow(ArrivalAndDepartureBean pab)

isLongRouteName

public boolean isLongRouteName(RouteBean route)

isShowFrequencyFrom

public boolean isShowFrequencyFrom(FrequencyBean frequency)


Copyright © 2011 OneBusAway. All Rights Reserved.