|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.time.CalendarSheet
public class CalendarSheet
A result representing a "calendar sheet" for a month including the days "before the start" and "after the end" of the requested month which are required to complete the full week.
| Nested Class Summary | |
|---|---|
protected static class |
CalendarSheet.CalendarSheetDay
Represents a day within the CalendarSheet based on the underlying
Duration. |
| Constructor Summary | |
|---|---|
CalendarSheet()
Default constructor. |
|
CalendarSheet(long timeStamp)
Creates a new CalendarSheetResult using the given time stamp as
reference time stamp. |
|
| Method Summary | |
|---|---|
java.util.Set<CalendarSheet.CalendarSheetDay> |
getCalendarSheetDays()
Returns the CalendarSheetDays of the CalendarSheet. |
protected java.util.Collection<CalendarSheet.CalendarSheetDay> |
getCalendarSheetDays(CalendarSheet.CalendarSheetDay.SelectionMode selMode)
Returns the CalendarSheetDays for the given
CalendarSheetDay.SelectionMode. |
long |
getReferenceTimeStamp()
Returns the reference time stamp of the CalendarSheet. |
protected Duration |
getSelectedPeriod(Period period)
Returns a Duration representing the given Period of the
CalendarSheet based on the underlying reference time stamp sorted
by their underlying Duration. |
void |
setReferenceTimeStamp(long timeStamp)
Sets the reference time stamp for the CalendarSheet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarSheet()
CalendarSheetResult using
System.currentTimeMillis() as reference time stamp.
public CalendarSheet(long timeStamp)
CalendarSheetResult using the given time stamp as
reference time stamp.
timeStamp - the time stamp| Method Detail |
|---|
public final long getReferenceTimeStamp()
CalendarSheet.
public final void setReferenceTimeStamp(long timeStamp)
CalendarSheet.
timeStamp - the time stampprotected final Duration getSelectedPeriod(Period period)
Duration representing the given Period of the
CalendarSheet based on the underlying reference time stamp sorted
by their underlying Duration.
period - the Period
Duration representing the given Period sorted
by their underlying Durationpublic final java.util.Set<CalendarSheet.CalendarSheetDay> getCalendarSheetDays()
CalendarSheetDays of the CalendarSheet.
CalendarSheetDaysprotected final java.util.Collection<CalendarSheet.CalendarSheetDay> getCalendarSheetDays(CalendarSheet.CalendarSheetDay.SelectionMode selMode)
CalendarSheetDays for the given
CalendarSheetDay.SelectionMode.
selMode - the CalendarSheetDay.SelectionMode
CalendarSheetDays
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||