Compoze Software, Inc.

portlets.compoze.groupware.model.calendar
Class DayViewModel

java.lang.Object
  extended byportlets.compoze.groupware.model.AbstractModel
      extended byportlets.compoze.groupware.model.calendar.CalendarModel
          extended byportlets.compoze.groupware.model.calendar.CalendarViewModel
              extended byportlets.compoze.groupware.model.calendar.DayViewModel
All Implemented Interfaces:
java.io.Serializable

public class DayViewModel
extends CalendarViewModel
implements java.io.Serializable

This class represents the data model for the day view (day_view.jsp).

See Also:
Serialized Form

Constructor Summary
DayViewModel(portlets.compoze.groupware.controls.provider.Provider provider, FeatureGroup featureGroup, GroupwarePreferences groupwarePrefs, CalendarPreferences calendarPrefs, Accounts accounts)
          Constructor.
 
Method Summary
 Day getDay()
          Gets the day for display.
 java.util.Date getEndDate()
          Gets the end date.
 java.lang.String getGivenDateString()
          Gets the localized date string.
 Month getMonth()
          Gets the month for the day view.
 Appointment[] getMonthAppointments()
          Gets the appointments for the mini-month.
 java.util.Date getNextDate()
          Gets the next date.
 java.util.Date getPreviousDate()
          Gets the previous date.
 java.util.Date getStartDate()
          Gets the start date.
 void setAppointments(Appointment[] appointments)
          Sets the appointments for the month view.
 void setMonth(Month month)
          Sets the month for the day view.
 void setMonthAppointments(Appointment[] appointments)
          Sets the appointments for the mini-month.
 
Methods inherited from class portlets.compoze.groupware.model.calendar.CalendarViewModel
getAppointments, getDateString, getGivenDate, getProvider, getTimeString, getToday, getTodayString, getYearString, setGivenDate
 
Methods inherited from class portlets.compoze.groupware.model.calendar.CalendarModel
getCalendarPreferences
 
Methods inherited from class portlets.compoze.groupware.model.AbstractModel
getAccounts, getActualTitle, getFeatureGroup, getGroupwarePreferences, getImAccount, getProviderCapabilities, getTitle, getTitleArgs, getTitleCrumbTrailKeys, isImAvailable, setActualTitle, setImAccount, setImAvailable, setTitle, setTitleArgs, setTitleCrumbTrailKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DayViewModel

public DayViewModel(portlets.compoze.groupware.controls.provider.Provider provider,
                    FeatureGroup featureGroup,
                    GroupwarePreferences groupwarePrefs,
                    CalendarPreferences calendarPrefs,
                    Accounts accounts)
Constructor.

Parameters:
provider - the provider (may not be null)
featureGroup - the feature group (may not be null)
groupwarePrefs - the groupware preferences (may not be null)
calendarPrefs - the calendar preferences (may not be null)
Method Detail

setAppointments

public void setAppointments(Appointment[] appointments)
Sets the appointments for the month view.

Overrides:
setAppointments in class CalendarViewModel
Parameters:
appointments - the appointments for the month view (may not be null)

getDay

public Day getDay()
Gets the day for display.

Returns:
the day for display

getGivenDateString

public java.lang.String getGivenDateString()
Gets the localized date string.

Overrides:
getGivenDateString in class CalendarViewModel
Returns:
the localized date string

setMonth

public void setMonth(Month month)
Sets the month for the day view.

Parameters:
month - the month for the day view (may not be null)

getMonth

public Month getMonth()
Gets the month for the day view.

Returns:
the month for the day view

setMonthAppointments

public void setMonthAppointments(Appointment[] appointments)
Sets the appointments for the mini-month.

Parameters:
appointments - the appointments for the mini-month (may not be null)

getMonthAppointments

public Appointment[] getMonthAppointments()
Gets the appointments for the mini-month.

Returns:
the appointments for the mini-month

getNextDate

public java.util.Date getNextDate()
Gets the next date.

Specified by:
getNextDate in class CalendarViewModel
Returns:
the next date

getPreviousDate

public java.util.Date getPreviousDate()
Gets the previous date.

Specified by:
getPreviousDate in class CalendarViewModel
Returns:
the previous date

getStartDate

public java.util.Date getStartDate()
Gets the start date.

Specified by:
getStartDate in class CalendarViewModel
Returns:
the start date

getEndDate

public java.util.Date getEndDate()
Gets the end date.

Specified by:
getEndDate in class CalendarViewModel
Returns:
the end date

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.