com.cc.framework.ui.painter.def.scheduler
Class DefWeekViewPainter

java.lang.Object
  extended bycom.cc.framework.ui.painter.ControlPortionPainter
      extended bycom.cc.framework.ui.painter.def.scheduler.DefSchedulerViewPainter
          extended bycom.cc.framework.ui.painter.def.scheduler.DefWeekViewPainter

public class DefWeekViewPainter
extends DefSchedulerViewPainter

Scheduler Painter for Week View

Version:
$Revision: 1.27 $
Author:
Harald Schulz

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
DefWeekViewPainter()
           
 
Method Summary
protected  int adjustDayIndex(int index)
           
protected  org.apache.ecs.ConcreteElement doCreateBody()
          This method creates the Body of the Scheduling Calendar Control
protected  org.apache.ecs.ConcreteElement doCreateDay(java.util.Calendar date)
          Creates the element for the given day
protected  org.apache.ecs.html.TD[] doCreateDayCells()
          Creates the cells for the days of the week
protected  org.apache.ecs.ConcreteElement doCreateDayLabel(java.util.Calendar date, Appointment[] appointments)
          Creates the day label
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  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.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

METRIC_MIN_DAY_HEIGHT

private static final int METRIC_MIN_DAY_HEIGHT
The minimal row height

See Also:
Constant Field Values
Constructor Detail

DefWeekViewPainter

public DefWeekViewPainter()
Method Detail

getDayTooltip

protected java.lang.String getDayTooltip(java.util.Calendar date)
Retrieves a Tooltip Text for the given Day

Parameters:
date - the Date
Returns:
Tooltip Text

getDayLabel

protected java.lang.String getDayLabel(java.util.Calendar date)
Retrieves a Label Text for the given Day

Parameters:
date - the Date
Returns:
Label Text

getDateFormat

protected java.text.DateFormat getDateFormat(int formatterId)
Description copied from class: DefSchedulerViewPainter
Retrieves the formatter for the given format id

Overrides:
getDateFormat in class DefSchedulerViewPainter
Parameters:
formatterId - the id of the formatter (DATEFORMAT_xxxx constant)
Returns:
formatter object
See Also:
DefSchedulerViewPainter.getDateFormat(int)

doCreateDayLabel

protected org.apache.ecs.ConcreteElement doCreateDayLabel(java.util.Calendar date,
                                                          Appointment[] appointments)
Creates the day label

Parameters:
date - Date
appointments - List of appointments for the day
Returns:
Day label

doCreateDay

protected org.apache.ecs.ConcreteElement doCreateDay(java.util.Calendar date)
Creates the element for the given day

Parameters:
date - Date
Returns:
Day Element

doCreateMetricRow

protected org.apache.ecs.ConcreteElement doCreateMetricRow()
Creates a HTML COLGROUP element that helps to web browser to calculate the layout of a month table

Returns:
COLGROUP Element

doCreateDayCells

protected org.apache.ecs.html.TD[] doCreateDayCells()
Creates the cells for the days of the week

Returns:
7 Day cells

doCreateBody

protected org.apache.ecs.ConcreteElement doCreateBody()
Description copied from class: DefSchedulerViewPainter
This method creates the Body of the Scheduling Calendar Control

Specified by:
doCreateBody in class DefSchedulerViewPainter
Returns:
HTML Element
See Also:
DefSchedulerViewPainter.doCreateBody()

adjustDayIndex

protected int adjustDayIndex(int index)

doCreateNavigationButton

public org.apache.ecs.ConcreteElement doCreateNavigationButton(boolean up)
Description copied from class: DefSchedulerViewPainter
Creates the Roll-Button

Specified by:
doCreateNavigationButton in class DefSchedulerViewPainter
Parameters:
up - true if the button rolls up
Returns:
ConcreteElement
See Also:
DefSchedulerViewPainter.doCreateNavigationButton(boolean)


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