com.cc.framework.ui.painter.def.scheduler
Class DefDayViewPainter.DayInfo

java.lang.Object
  extended bycom.cc.framework.ui.painter.def.scheduler.DefDayViewPainter.DayInfo
Enclosing class:
DefDayViewPainter

protected class DefDayViewPainter.DayInfo
extends java.lang.Object

Column Layout Information


Field Summary
private  java.util.Vector allDayEvents
          Collection of "allday" events
private  Appointment[] appointments
          Collection of all appointments
private  int columns
          The number of columns required to layout all appointments for this day
private  java.util.Calendar date
          The Days date
private  int dayOfWeek
          The Day of the week
private  java.util.Vector events
          Collection of normal appointments
 
Constructor Summary
DefDayViewPainter.DayInfo(java.util.Calendar date, Appointment[] appointments)
          Creates and initializes the Information about the given day
 
Method Summary
 DefDayViewPainter.AppointmentInfo find(int column, int rowIndex)
          Searches for the appointment that starts in the given column at the given time and advances the internal iterator
 Appointment[] getAllDayEvents()
          Returns only the "allday" appointments for this day
 Appointment[] getAppointments()
          Retrieves the raw appointment list for this day
 Appointment[] getAppointmentsOutOfBounds(int pos)
          Retrieves a list of appointments which are out of bounds
 int getAppointmentsOutOfBoundsCount(int pos)
          Counts the number of appointments that are out of range
 int getColumns()
           
 int getCount()
           
 java.util.Calendar getDate()
           
 int getVisibleCount()
          Counts the number of visible appointments
 boolean isWorkingHour(int hour)
          This method checks if the given hour is a working hour
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

private java.util.Calendar date
The Days date


dayOfWeek

private int dayOfWeek
The Day of the week


appointments

private Appointment[] appointments
Collection of all appointments


allDayEvents

private java.util.Vector allDayEvents
Collection of "allday" events

See Also:
DefDayViewPainter.AppointmentInfo

events

private java.util.Vector events
Collection of normal appointments

See Also:
DefDayViewPainter.AppointmentInfo

columns

private int columns
The number of columns required to layout all appointments for this day

Constructor Detail

DefDayViewPainter.DayInfo

public DefDayViewPainter.DayInfo(java.util.Calendar date,
                                 Appointment[] appointments)
Creates and initializes the Information about the given day

Parameters:
date - The days date
appointments - The appointment list for that day
Method Detail

getAppointments

public Appointment[] getAppointments()
Retrieves the raw appointment list for this day

Returns:
Appointment list

getCount

public int getCount()
Returns:
The total number of appointments

getVisibleCount

public int getVisibleCount()
Counts the number of visible appointments

Returns:
Number of appointments

getAppointmentsOutOfBoundsCount

public int getAppointmentsOutOfBoundsCount(int pos)
Counts the number of appointments that are out of range

Parameters:
pos - The position of the appointment relative to the bounds of the time table (POS_REL_xxx)
Returns:
Number of appointments

getAppointmentsOutOfBounds

public Appointment[] getAppointmentsOutOfBounds(int pos)
Retrieves a list of appointments which are out of bounds

Parameters:
pos - The position of the appointment relative to the bounds of the time table (POS_REL_xxx)
Returns:
Appointment List

getAllDayEvents

public Appointment[] getAllDayEvents()
Returns only the "allday" appointments for this day

Returns:
Appointment collection

getDate

public java.util.Calendar getDate()
Returns:
The days date

getColumns

public int getColumns()
Returns:
The number of columns required to layout all appointments for the day

isWorkingHour

public boolean isWorkingHour(int hour)
This method checks if the given hour is a working hour

Parameters:
hour - The hour to check
Returns:
true if the hour is a working hour

find

public DefDayViewPainter.AppointmentInfo find(int column,
                                              int rowIndex)
Searches for the appointment that starts in the given column at the given time and advances the internal iterator

Parameters:
column - Column
rowIndex - the row that the appointment should span
Returns:
returns an appointment or null


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.