|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.def.scheduler.DefDayViewPainter.DayInfo
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 |
private java.util.Calendar date
private int dayOfWeek
private Appointment[] appointments
private java.util.Vector allDayEvents
DefDayViewPainter.AppointmentInfo
private java.util.Vector events
DefDayViewPainter.AppointmentInfo
private int columns
Constructor Detail |
public DefDayViewPainter.DayInfo(java.util.Calendar date, Appointment[] appointments)
date
- The days dateappointments
- The appointment list for that dayMethod Detail |
public Appointment[] getAppointments()
public int getCount()
public int getVisibleCount()
public int getAppointmentsOutOfBoundsCount(int pos)
pos
- The position of the appointment relative to the bounds of
the time table (POS_REL_xxx)
public Appointment[] getAppointmentsOutOfBounds(int pos)
pos
- The position of the appointment relative to the bounds of
the time table (POS_REL_xxx)
public Appointment[] getAllDayEvents()
public java.util.Calendar getDate()
public int getColumns()
public boolean isWorkingHour(int hour)
hour
- The hour to check
true
if the hour is a working hourpublic DefDayViewPainter.AppointmentInfo find(int column, int rowIndex)
column
- ColumnrowIndex
- the row that the appointment should span
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |