|
|||||||||||
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.DefMonthViewPainter
Scheduler Painter for month view
Nested Class Summary |
Nested classes inherited from class com.cc.framework.ui.painter.def.scheduler.DefSchedulerViewPainter |
DefSchedulerViewPainter.CompositeElement |
Field Summary | |
private static int |
METRIC_MIN_DAY_HEIGHT
The minimal row height |
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 | |
DefMonthViewPainter()
Constructor |
Method Summary | |
protected int |
calcDayColumns()
Calculates the number of day columns |
protected org.apache.ecs.ConcreteElement |
doCreateBody()
This method creates the Body of the Scheduling Calendar Control |
protected org.apache.ecs.html.TD |
doCreateDayCell(java.util.Calendar date,
int state)
Paints the cell for the given day |
protected org.apache.ecs.html.TR |
doCreateDayHeader(int firstDayOfWeek)
Creates the Days column header row |
protected org.apache.ecs.ConcreteElement |
doCreateDayLabel(java.util.Calendar date,
Appointment[] appointments,
int state)
Creates the days label element |
protected org.apache.ecs.ConcreteElement |
doCreateMetricRow()
Creates a HTML COLGROUP element that helps to web browser to calculate the layout of a month table |
org.apache.ecs.ConcreteElement |
doCreateNavigationButton(boolean up)
Creates the Roll-Button |
protected void |
doPaintDayHeader(org.apache.ecs.html.TD headerCell,
int dayOfWeek)
This method paints one single Header Cell of the Scheduler |
protected java.text.DateFormat |
getDateFormat(int formatterId)
Retrieves the formatter for the given format id |
protected java.lang.String |
getDayLabel(java.util.Calendar date,
int state)
Retrieves a Label Text for the given Day |
protected java.lang.String |
getDayTooltip(java.util.Calendar date)
Retrieves a Tooltip Text for the given Day |
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_MIN_DAY_HEIGHT
Constructor Detail |
public DefMonthViewPainter()
Method Detail |
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.lang.String getDayTooltip(java.util.Calendar date)
date
- the Date
protected java.lang.String getDayLabel(java.util.Calendar date, int state)
date
- The Datestate
- The days state
protected void doPaintDayHeader(org.apache.ecs.html.TD headerCell, int dayOfWeek)
headerCell
- the Header cell to paintdayOfWeek
- the Day for this columnpublic org.apache.ecs.ConcreteElement doCreateNavigationButton(boolean up)
DefSchedulerViewPainter
doCreateNavigationButton
in class DefSchedulerViewPainter
up
- true
if the button rolls up
DefSchedulerViewPainter.doCreateNavigationButton(boolean)
protected org.apache.ecs.html.TR doCreateDayHeader(int firstDayOfWeek)
firstDayOfWeek
- the weeks starting offset
protected org.apache.ecs.ConcreteElement doCreateDayLabel(java.util.Calendar date, Appointment[] appointments, int state)
date
- the dateappointments
- List of appointments for the daystate
- the days state
protected org.apache.ecs.html.TD doCreateDayCell(java.util.Calendar date, int state)
date
- datestate
- days state
protected int calcDayColumns()
protected org.apache.ecs.ConcreteElement doCreateMetricRow()
protected org.apache.ecs.ConcreteElement doCreateBody()
DefSchedulerViewPainter
doCreateBody
in class DefSchedulerViewPainter
DefSchedulerViewPainter.doCreateBody()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |