|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.ControlPortionPainter com.cc.framework.ui.painter.def.scheduler.DefSchedulerViewPainter com.cc.framework.ui.painter.def.scheduler.DefDayViewPainter
The Day View Calendar Painter
Nested Class Summary | |
protected class |
DefDayViewPainter.AppointmentInfo
This class adds some layout information to an appointment |
protected class |
DefDayViewPainter.DayInfo
Column Layout Information |
Nested classes inherited from class com.cc.framework.ui.painter.def.scheduler.DefSchedulerViewPainter |
DefSchedulerViewPainter.CompositeElement |
Field Summary | |
private static int |
METRIC_HOUR_WIDTH
The width of the "hour" section |
private static int |
METRIC_INTERVAL_WIDTH
The width of the "minute" section |
private static int |
METRIC_LINE_HIGHT
The high of one row |
private static int |
METRIC_SEPARATOR_WIDTH
The width of the column separator |
private static int |
POS_REL_BOTTOM
Relative to the bottom of the time table |
private static int |
POS_REL_TOP
Relative to the top of the time table |
Fields inherited from class com.cc.framework.ui.painter.def.scheduler.DefSchedulerViewPainter |
DATEFORMAT_DATETIME, DATEFORMAT_DAY, DATEFORMAT_DETAIL, DATEFORMAT_HOUR, DATEFORMAT_MONTH_OF_YEAR, DATEFORMAT_TIME, DATEFORMAT_WEEK, DATEFORMAT_WEEKDAY, DATEFORMAT_WEEKDAY_SHORT, LABELFORMAT_LONG, LABELFORMAT_SHORT, STATE_APPOINTMENTS, STATE_DAY_IN_MONTH, STATE_FIRST_DAY, STATE_FIRST_MONTH, STATE_HIDDEN, STATE_LAST_MONTH, STATE_LEFTMOST_MONTH, STATE_RIGHTMOST_MONTH, STATE_TODAY |
Fields inherited from class com.cc.framework.ui.painter.ControlPortionPainter |
|
Constructor Summary | |
DefDayViewPainter()
|
Method Summary | |
private DefDayViewPainter.DayInfo[] |
createDayInfo(java.util.Calendar[] dates)
Creates the information objects for all visible days |
protected org.apache.ecs.ConcreteElement |
doCreateAllDayArea(DefDayViewPainter.DayInfo[] days)
Creates the row with the "allday" areas for all visible days |
protected org.apache.ecs.ConcreteElement |
doCreateBody()
This method creates the Body of the Scheduling Calendar Control |
protected org.apache.ecs.ConcreteElement |
doCreateDayHeader(DefDayViewPainter.DayInfo[] days)
Creates the header with the day labels for a multiple day view |
protected org.apache.ecs.ConcreteElement |
doCreateDayLabel(DefDayViewPainter.DayInfo dayInfo)
Creates the days label element |
protected org.apache.ecs.ConcreteElement |
doCreateMetricRow(DefDayViewPainter.DayInfo[] days)
Creates the row with metric information that gives the table its column layout |
org.apache.ecs.ConcreteElement |
doCreateNavigationButton(boolean up)
Creates the Roll-Button |
protected org.apache.ecs.html.TR |
doCreateOverflowIndicatorRow(DefDayViewPainter.DayInfo[] days,
int pos)
Creates the row with the "allday" areas for all visible days |
protected int |
getAppointmentColumns(DefDayViewPainter.DayInfo[] days)
Calculates the number of HTML table columns (TD's) that are necessary to display the appointments |
protected int |
getAppointmentsOutOfBoundsCount(DefDayViewPainter.DayInfo[] days,
int pos)
Counts the number of appointments that are out of range |
protected java.text.DateFormat |
getDateFormat(int formatterId)
Retrieves the formatter for the given format id |
protected java.lang.String |
getDayLabel(java.util.Calendar date)
Retrieves a Label Text for the given Day |
protected java.util.Calendar[] |
getDays()
This method is called to retrieve a list of visible Days for the Day view |
protected java.lang.String |
getDayTooltip(java.util.Calendar date)
Retrieves a Tooltip Text for the given Day |
protected java.lang.String |
getHourLabel(java.util.Calendar date)
This method is called to create the labels for the hour time bar |
protected int |
getTotalColumns(DefDayViewPainter.DayInfo[] days)
Calculates the total number of HTML table columns (TD's) for the day view table |
protected int |
getTotalRows(DefDayViewPainter.DayInfo[] days)
Calculates the total number of HTML table rows for the day view table |
Methods inherited from class com.cc.framework.ui.painter.def.scheduler.DefSchedulerViewPainter |
addPopup, addPopupWindow, addPopupWindow, createClockImage, createDateFormatter, createNavigationButton, doCreateAppointment, doCreateAppointmentList, doCreateHeader, doCreateMoreButton, doCreateView, getAppointmentLabel, getAppointmentTimeStr, getAppointmentTooltip, getCtrl, getDayClass, getDayOfWeekMask, getDayState, getDetail, getFirstDayOfWeek, getPopups, getPriorityImage, hasPopups, markAsToday, setControlPainter, showDay, showFrame |
Methods inherited from class com.cc.framework.ui.painter.ControlPortionPainter |
attr, attr, attr, createActionPainter, createActionPainter, createImage, createImage, createImage, createSpacer, getColor, getControlPainter, getElementClass, getFrameworkString, getFrameworkString, getImage, getImage, getImageSrc, getImageSrc, getLocale, getPageContext, getPainterContext, getPrincipal, getSafeLocale, html, html, html, isRunAtClient, localize, removeHtml, removeHtml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int METRIC_HOUR_WIDTH
private static final int METRIC_INTERVAL_WIDTH
private static final int METRIC_SEPARATOR_WIDTH
private static final int METRIC_LINE_HIGHT
private static final int POS_REL_TOP
private static final int POS_REL_BOTTOM
Constructor Detail |
public DefDayViewPainter()
Method Detail |
private DefDayViewPainter.DayInfo[] createDayInfo(java.util.Calendar[] dates)
dates
- Days
protected java.text.DateFormat getDateFormat(int formatterId)
DefSchedulerViewPainter
getDateFormat
in class DefSchedulerViewPainter
formatterId
- the id of the formatter (DATEFORMAT_xxxx constant)
DefSchedulerViewPainter.getDateFormat(int)
protected java.util.Calendar[] getDays()
protected java.lang.String getDayTooltip(java.util.Calendar date)
date
- the Date
protected java.lang.String getDayLabel(java.util.Calendar date)
date
- the Date
protected java.lang.String getHourLabel(java.util.Calendar date)
date
- the date and time
protected org.apache.ecs.ConcreteElement doCreateDayLabel(DefDayViewPainter.DayInfo dayInfo)
dayInfo
- the information about the day
protected org.apache.ecs.ConcreteElement doCreateDayHeader(DefDayViewPainter.DayInfo[] days)
days
- Days
protected org.apache.ecs.ConcreteElement doCreateMetricRow(DefDayViewPainter.DayInfo[] days)
days
- the visible days list
protected org.apache.ecs.ConcreteElement doCreateAllDayArea(DefDayViewPainter.DayInfo[] days)
days
- the visible days list
protected int getAppointmentsOutOfBoundsCount(DefDayViewPainter.DayInfo[] days, int pos)
days
- the visible days listpos
- The position of the appointment relative to the bounds of the
time table (POS_REL_xxx)
protected int getTotalRows(DefDayViewPainter.DayInfo[] days)
days
- the visible days list
protected int getTotalColumns(DefDayViewPainter.DayInfo[] days)
days
- the visible days list
protected int getAppointmentColumns(DefDayViewPainter.DayInfo[] days)
days
- the visible days list
protected org.apache.ecs.html.TR doCreateOverflowIndicatorRow(DefDayViewPainter.DayInfo[] days, int pos)
days
- the visible days listpos
- The position of the appointment relative to the bounds of the
time table (POS_REL_xxx)
protected org.apache.ecs.ConcreteElement doCreateBody()
DefSchedulerViewPainter
doCreateBody
in class DefSchedulerViewPainter
DefSchedulerViewPainter.doCreateBody()
public org.apache.ecs.ConcreteElement doCreateNavigationButton(boolean up)
DefSchedulerViewPainter
doCreateNavigationButton
in class DefSchedulerViewPainter
up
- true
if the button rolls up
DefSchedulerViewPainter.doCreateNavigationButton(boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |