org.onebusaway.webapp.actions.where
Class ScheduleAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.onebusaway.webapp.actions.where.ScheduleAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable

public class ScheduleAction
extends com.opensymphony.xwork2.ActionSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ScheduleAction()
           
 
Method Summary
 String execute()
           
 String getFormattedDate(String format, Date date)
           
 String getFrequencyCellHeight(FrequencyInstanceBean bean)
           
 StopScheduleBean getResult()
           
<T> List<List<T>>
getRows(List<T> elements, int rowLength)
           
 Date getShiftedDate(Date date)
           
 List<String> getShortWeekDays()
           
 List<org.onebusaway.collections.tuple.T2<String,List<StopCalendarDayBean>>> getStopCalendarDaysByFormatKey(List<StopCalendarDayBean> stopCalendarDays, String format)
           
 List<StopCalendarDayBean> getStopCalendarDaysByFormatKeyAndValue(List<StopCalendarDayBean> stopCalendarDays, String format, String value)
           
 List<org.onebusaway.collections.tuple.T2<String,List<StopTimeInstanceBean>>> getStopTimesByFormatKey(List<StopTimeInstanceBean> stopTimes, String format)
           
 TimeZone getTimeZone()
           
 boolean isAmPmClock()
           
 boolean isShowArrivals()
           
 void setDate(Date date)
           
 void setId(String id)
           
 void setShowArrivals(boolean showArrivals)
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleAction

public ScheduleAction()
Method Detail

setId

public void setId(String id)

setDate

public void setDate(Date date)

setShowArrivals

public void setShowArrivals(boolean showArrivals)

isShowArrivals

public boolean isShowArrivals()

getResult

public StopScheduleBean getResult()

getTimeZone

public TimeZone getTimeZone()

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

isAmPmClock

public boolean isAmPmClock()

getShortWeekDays

public List<String> getShortWeekDays()

getRows

public <T> List<List<T>> getRows(List<T> elements,
                                 int rowLength)

getStopTimesByFormatKey

public List<org.onebusaway.collections.tuple.T2<String,List<StopTimeInstanceBean>>> getStopTimesByFormatKey(List<StopTimeInstanceBean> stopTimes,
                                                                                                            String format)
Parameters:
stopTimes -
format -
Returns:

getStopCalendarDaysByFormatKey

public List<org.onebusaway.collections.tuple.T2<String,List<StopCalendarDayBean>>> getStopCalendarDaysByFormatKey(List<StopCalendarDayBean> stopCalendarDays,
                                                                                                                  String format)

getStopCalendarDaysByFormatKeyAndValue

public List<StopCalendarDayBean> getStopCalendarDaysByFormatKeyAndValue(List<StopCalendarDayBean> stopCalendarDays,
                                                                        String format,
                                                                        String value)

getFrequencyCellHeight

public String getFrequencyCellHeight(FrequencyInstanceBean bean)

getShiftedDate

public Date getShiftedDate(Date date)

getFormattedDate

public String getFormattedDate(String format,
                               Date date)


Copyright © 2012 OneBusAway. All Rights Reserved.