Compoze Software, Inc.

portlets.compoze.groupware.model.home
Class DayViewHomeModel

java.lang.Object
  extended byportlets.compoze.groupware.model.AbstractModel
      extended byportlets.compoze.groupware.model.home.HomeModel
          extended byportlets.compoze.groupware.model.home.DayViewHomeModel
All Implemented Interfaces:
java.io.Serializable

public class DayViewHomeModel
extends HomeModel
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
DayViewHomeModel(portlets.compoze.groupware.controls.provider.ProviderCapabilities capabilities, FeatureGroup featureGroup, GroupwarePreferences groupwarePrefs, HomePreferences homePrefs, CalendarPreferences calendarPrefs, Accounts accounts)
          Constructor.
 
Method Summary
 Appointment[] getAppointments()
          Gets the appointments for the month view.
 CalendarPreferences getCalendarPrefs()
          Gets the calendar preferences.
 Day getDay()
          Gets the day for display.
 java.util.Date getEndDate()
          Gets the end date.
 java.util.Date getGivenDate()
          Gets the given date.
 java.lang.String getGivenDateString()
          Gets the localized date string.
 java.util.Date getNextDate()
          Gets the next date.
 java.util.Date getPreviousDate()
          Gets the previous date.
 portlets.compoze.groupware.controls.provider.Provider getProvider()
          Gets the provider.
 java.util.Date getStartDate()
          Gets the start date.
 void setAppointments(Appointment[] appointments)
          Sets the appointments for the month view.
 void setGivenDate(java.util.Date givenDate)
          Sets the given date.
 void setProvider(portlets.compoze.groupware.controls.provider.Provider provider)
          Sets the provider.
 
Methods inherited from class portlets.compoze.groupware.model.home.HomeModel
getDateString, getFeature, getHomePreferences, getTimeString, isOnlyOneFeatureAvailable
 
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

DayViewHomeModel

public DayViewHomeModel(portlets.compoze.groupware.controls.provider.ProviderCapabilities capabilities,
                        FeatureGroup featureGroup,
                        GroupwarePreferences groupwarePrefs,
                        HomePreferences homePrefs,
                        CalendarPreferences calendarPrefs,
                        Accounts accounts)
Constructor.

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

getCalendarPrefs

public CalendarPreferences getCalendarPrefs()
Gets the calendar preferences.

Returns:
the calendar preferences

setAppointments

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

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

getAppointments

public Appointment[] getAppointments()
Gets the appointments for the month view.

Returns:
the appointments for the month

getGivenDate

public java.util.Date getGivenDate()
Gets the given date.

Returns:
the given date

setGivenDate

public void setGivenDate(java.util.Date givenDate)
Sets the given date.

Parameters:
givenDate - the given date (may not be null)

getDay

public Day getDay()
Gets the day for display.

Returns:
the day for display

getStartDate

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

Returns:
the start date

getEndDate

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

Returns:
the end date

getNextDate

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

Returns:
the next date

getPreviousDate

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

Returns:
the previous date

getGivenDateString

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

Returns:
the localized date string

setProvider

public void setProvider(portlets.compoze.groupware.controls.provider.Provider provider)
Sets the provider.

Parameters:
provider - the provider (may not be null)

getProvider

public portlets.compoze.groupware.controls.provider.Provider getProvider()
Gets the provider.

Returns:
the provider

Compoze Software, Inc.

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