com.bradrydzewski.gwt.calendar.client.monthview
Class WeekLayoutDescription

java.lang.Object
  extended by com.bradrydzewski.gwt.calendar.client.monthview.WeekLayoutDescription

public class WeekLayoutDescription
extends Object

Describes the layout of days (single, all and multi-day) within a single week that is visualized in the MonthView. A WeekLayoutDescription is not aware of any other thing than placing an appointment horizontally, i.e., without considering the exact week the appointment belongs to. It is the MonthLayoutDescription responsibility to allocate the month necessary weeks and distributing appointments over them.

Author:
Carlos D. Morales
See Also:
MonthView, MonthLayoutDescription

Field Summary
static int FIRST_DAY
           
static int LAST_DAY
           
 
Constructor Summary
WeekLayoutDescription(Date calendarFirstDay, Date calendarLastDay)
           
WeekLayoutDescription(Date calendarFirstDay, Date calendarLastDay, int maxLayer)
           
 
Method Summary
 void addAppointment(Appointment appointment)
           
 void addMultiDayAppointment(Appointment appointment)
           
 void addMultiWeekAppointment(Appointment appointment, AppointmentWidgetParts presenceInMonth)
           
 boolean areThereAppointmentsOnDay(int day)
           
 int currentStackOrderInDay(int dayIndex)
           
 DayLayoutDescription getDayLayoutDescription(int day)
           
 AppointmentStackingManager getTopAppointmentsManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_DAY

public static final int FIRST_DAY
See Also:
Constant Field Values

LAST_DAY

public static final int LAST_DAY
See Also:
Constant Field Values
Constructor Detail

WeekLayoutDescription

public WeekLayoutDescription(Date calendarFirstDay,
                             Date calendarLastDay,
                             int maxLayer)

WeekLayoutDescription

public WeekLayoutDescription(Date calendarFirstDay,
                             Date calendarLastDay)
Method Detail

areThereAppointmentsOnDay

public boolean areThereAppointmentsOnDay(int day)

getDayLayoutDescription

public DayLayoutDescription getDayLayoutDescription(int day)

addAppointment

public void addAppointment(Appointment appointment)

currentStackOrderInDay

public int currentStackOrderInDay(int dayIndex)

addMultiDayAppointment

public void addMultiDayAppointment(Appointment appointment)

addMultiWeekAppointment

public void addMultiWeekAppointment(Appointment appointment,
                                    AppointmentWidgetParts presenceInMonth)

getTopAppointmentsManager

public AppointmentStackingManager getTopAppointmentsManager()


Copyright © 2012. All Rights Reserved.