pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.time
Class CalendarSheet.CalendarSheetDay

java.lang.Object
  extended by org.torweg.pulse.util.time.CalendarSheet.CalendarSheetDay
All Implemented Interfaces:
IHasDuration
Enclosing class:
CalendarSheet

protected static class CalendarSheet.CalendarSheetDay
extends java.lang.Object
implements IHasDuration

Represents a day within the CalendarSheet based on the underlying Duration.

Version:
$Revision$
Author:
Daniel Dietz

Nested Class Summary
protected static class CalendarSheet.CalendarSheetDay.SelectionMode
          The selection mode of the current CalendarSheetDay.
 
Constructor Summary
protected CalendarSheet.CalendarSheetDay()
          Deprecated. 
protected CalendarSheet.CalendarSheetDay(Duration dur, CalendarSheet.CalendarSheetDay.SelectionMode selMode)
          Creates a new CalendarSheetDay for the given Duration and SelectionMode.
 
Method Summary
protected  CalendarJAXBOutputWrapper getCalendarJAXBOutputWrapper()
          Returns a CalendarJAXBOutputWrapper based on the start time stamp of the CalendarSheetDay.
 Duration getDuration()
          Returns the Duration of the CalendarSheetDay.
 java.util.Locale getLocale()
          Returns the Locale.
 CalendarSheet.CalendarSheetDay.SelectionMode getSelectionMode()
          Returns the SlectionMode of the CalendarSheetDay.
 java.util.TimeZone getTimeZone()
          Returns the TimeZone.
protected  void setDuration(Duration dur)
          Sets the start/end time time stamp for the CalendarSheetDay from the given Duration.
protected  void setLocale(java.util.Locale loc)
          Sets the Locale.
protected  void setSelectionMode(CalendarSheet.CalendarSheetDay.SelectionMode selMode)
          Sets the given SlectionMode for the CalendarSheetDay.
protected  void setTimeZone(java.util.TimeZone tZone)
          Sets the TimeZone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarSheet.CalendarSheetDay

@Deprecated
protected CalendarSheet.CalendarSheetDay()
Deprecated. 

Default constructor.


CalendarSheet.CalendarSheetDay

protected CalendarSheet.CalendarSheetDay(Duration dur, CalendarSheet.CalendarSheetDay.SelectionMode selMode)
Creates a new CalendarSheetDay for the given Duration and SelectionMode.

Parameters:
dur - the Duration
selMode - the SelectionMode
Method Detail

getDuration

public final Duration getDuration()
Returns the Duration of the CalendarSheetDay.

Specified by:
getDuration in interface IHasDuration
Returns:
the duration

setDuration

protected final void setDuration(Duration dur)
Sets the start/end time time stamp for the CalendarSheetDay from the given Duration.

Parameters:
dur - the Duration to set
Throws:
TimeUtilityException - if the given Duration does not match Period.DAY

getSelectionMode

public final CalendarSheet.CalendarSheetDay.SelectionMode getSelectionMode()
Returns the SlectionMode of the CalendarSheetDay.

Returns:
the selectionMode

setSelectionMode

protected final void setSelectionMode(CalendarSheet.CalendarSheetDay.SelectionMode selMode)
Sets the given SlectionMode for the CalendarSheetDay.

Parameters:
selMode - the SelectionMode to set

getCalendarJAXBOutputWrapper

protected final CalendarJAXBOutputWrapper getCalendarJAXBOutputWrapper()
Returns a CalendarJAXBOutputWrapper based on the start time stamp of the CalendarSheetDay.

Returns:
a CalendarJAXBOutputWrapper

getTimeZone

public final java.util.TimeZone getTimeZone()
Returns the TimeZone.

Returns:
the timeZone

setTimeZone

protected final void setTimeZone(java.util.TimeZone tZone)
Sets the TimeZone.

Parameters:
tZone - the TimeZone to set

getLocale

public final java.util.Locale getLocale()
Returns the Locale.

Returns:
the locale

setLocale

protected final void setLocale(java.util.Locale loc)
Sets the Locale.

Parameters:
loc - the Locale to set