Class ScheduleAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- org.onebusaway.enterprise.webapp.actions.where.ScheduleAction
-
- All Implemented Interfaces:
com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class ScheduleAction extends com.opensymphony.xwork2.ActionSupport
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduleAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
-
-
-
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 interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
isAmPmClock
public boolean isAmPmClock()
-
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)
-
-