Package org.opencms.widgets.serialdate
Class CmsSerialDateBeanSingle
java.lang.Object
org.opencms.widgets.serialdate.A_CmsSerialDateBean
org.opencms.widgets.serialdate.CmsSerialDateBeanSingle
- All Implemented Interfaces:
I_CmsSerialDateBean
Implementation of @{link org.opencms.widgets.serialdate.I_CmsSerialDateBean}
that handles single events.
-
Field Summary
Fields inherited from class org.opencms.widgets.serialdate.A_CmsSerialDateBean
m_allDates, m_dates, m_datesInMillis, m_endDate, m_endMillis, m_endType, m_exceptions, m_occurrences, m_serialEndDate, m_startDate, MAX_OCCURRENCES
-
Constructor Summary
ConstructorDescriptionCmsSerialDateBeanSingle
(Date startDate, Date endDate, boolean isWholeDay) Constructor for the serial date bean for single events. -
Method Summary
Modifier and TypeMethodDescriptionprotected Calendar
Generates the first date of the series.protected boolean
Check, if the series can have at least one event/date.protected void
toNextDate
(Calendar date) Starting with a date that's in the series, the next date is created.Methods inherited from class org.opencms.widgets.serialdate.A_CmsSerialDateBean
getDates, getDatesAsLong, getEventDuration, getExceptions, getOccurrences, getSerialEndDate, getSerialEndType, getStartDate, hasTooManyDates, showMoreEntries
-
Constructor Details
-
CmsSerialDateBeanSingle
Constructor for the serial date bean for single events.- Parameters:
startDate
- the start date of the single event.endDate
- the end date of the single event.isWholeDay
- flag, indicating if the event lasts the whole day.
-
-
Method Details
-
getFirstDate
Description copied from class:A_CmsSerialDateBean
Generates the first date of the series.- Specified by:
getFirstDate
in classA_CmsSerialDateBean
- Returns:
- the first date of the series.
- See Also:
-
isAnyDatePossible
Description copied from class:A_CmsSerialDateBean
Check, if the series can have at least one event/date.- Specified by:
isAnyDatePossible
in classA_CmsSerialDateBean
- Returns:
true
if the series can be non-empty,false
otherwise.- See Also:
-
toNextDate
Description copied from class:A_CmsSerialDateBean
Starting with a date that's in the series, the next date is created.- Specified by:
toNextDate
in classA_CmsSerialDateBean
- Parameters:
date
- the current event date for a event in the series, which is adjusted to the next date potentially in the series.- See Also:
-