com.cc.framework.ui.painter.def
Class DefSchedulerPainter

java.lang.Object
  extended bycom.cc.framework.ui.painter.ControlPainter
      extended bycom.cc.framework.ui.painter.def.DefPainterBase
          extended bycom.cc.framework.ui.painter.def.DefSchedulerPainter

public class DefSchedulerPainter
extends DefPainterBase

Painter for the calendar control

Version:
$Revision: 1.21 $
Author:
Gernot Schulz

Field Summary
private  DefSchedulerViewPainter viewPainter
          The internal used portion painter to paint the actual view of the scheduler
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
DefSchedulerPainter(PainterContext painterContext, SchedulerControl ctrl)
          Constructor
 
Method Summary
protected  org.apache.ecs.ConcreteElement doCreateBody()
          This method creates the body of the scheduler control
protected  org.apache.ecs.ConcreteElement doCreateCreateButton()
          Creates the New-Button
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML-Element.
protected  org.apache.ecs.ConcreteElement doCreateExportButton(boolean empty)
          Creates the Export-Button
protected  org.apache.ecs.ConcreteElement doCreateFooter()
          Creates an additional footer.
protected  org.apache.ecs.ConcreteElement doCreateFrames(AlignmentType alignmentFilter)
          Creates a frame container with all frames that match the given filter
protected  org.apache.ecs.ConcreteElement doCreateHeader()
          Creates an additional header.
protected  org.apache.ecs.ConcreteElement doCreatePrintButton(boolean empty)
          Creates the Print-Button
protected  org.apache.ecs.ConcreteElement doCreateRefreshButton()
          Creates the Refresh-Button
protected  JavaScript doCreateScript()
          Creates the Java Script Code which is needed by the control
protected  java.util.Collection doCreateTitleButtons(DefSchedulerViewPainter viewPainter)
          Creates the buttons in the frame header
protected  org.apache.ecs.ConcreteElement doCreateViewDayButton()
          Creates a View-Button
protected  org.apache.ecs.ConcreteElement doCreateViewMonthButton()
          Creates a View-Button
protected  DefSchedulerViewPainter doCreateViewPainter(SchedulerView view)
          This methods creates the painter for the Scheduler View
protected  org.apache.ecs.ConcreteElement doCreateViewWeekButton()
          Creates a View-Button
protected  org.apache.ecs.ConcreteElement doCreateViewWorkWeekButton()
          Creates a View-Button
protected  org.apache.ecs.ConcreteElement doCreateViewYearButton()
          Creates a View-Button
protected  SchedulerControl getCtrl()
          Returns the Control instance
 java.lang.String getElementClass(int type)
          The method returns the HTML style class required for a list or treelist control.
protected  FrameTitle getFrameTitle()
          Creates the Title for the Frame
protected  DefSchedulerViewPainter getViewPainter()
          Retrieves the cached View Painter
protected  boolean showFrame()
          Checks if the frame should be painted
 
Methods inherited from class com.cc.framework.ui.painter.def.DefPainterBase
createHelpElement, createHelpElement, doCreateHelpButton, doCreateHelpIcon
 
Methods inherited from class com.cc.framework.ui.painter.ControlPainter
ajaxPaint, attr, attr, attr, beginPaint, createActionPainter, createActionPainter, createElement, createImage, createImage, createImage, createInput, createInput, createSpacer, createSpacer, createSpacer, decorateURL, doAddDecorationsToRow, doAddDecorationsToRow, doAfterCreate, doAttachDecorations, doBeforeCreate, encodeURL, endPaint, forceControlName, getAsString, getAwtColor, getColor, getContextPath, getControlName, getDecorationsOnce, getElementName, getFramePainter, getFrameworkString, getFrameworkString, getImage, getImage, getImage, getImageSrc, getImageSrc, getImageSrc, getLocale, getPageContext, getPainterContext, getPrincipal, getRequest, getResponse, getSession, getSmartCaption, getSmartDetail, getSource, getSource, getStringResource, getStyleId, html, html, html, init, isRunAtClient, localize, localize, localize, paint, removeHtml, removeHtml, request, response, session, showComments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewPainter

private DefSchedulerViewPainter viewPainter
The internal used portion painter to paint the actual view of the scheduler

Constructor Detail

DefSchedulerPainter

public DefSchedulerPainter(PainterContext painterContext,
                           SchedulerControl ctrl)
Constructor

Parameters:
painterContext - The PainterContext
ctrl - The Control to render
Method Detail

getCtrl

protected SchedulerControl getCtrl()
Returns the Control instance

Returns:
Control

doCreateViewPainter

protected DefSchedulerViewPainter doCreateViewPainter(SchedulerView view)
This methods creates the painter for the Scheduler View

Parameters:
view - The current view
Returns:
View Painter

getViewPainter

protected DefSchedulerViewPainter getViewPainter()
Retrieves the cached View Painter

Returns:
SchedulerViewPainter

showFrame

protected boolean showFrame()
Checks if the frame should be painted

Returns:
true if the frame should be painted

doCreateViewDayButton

protected org.apache.ecs.ConcreteElement doCreateViewDayButton()
Creates a View-Button

Returns:
ConcreteElement

doCreateViewWorkWeekButton

protected org.apache.ecs.ConcreteElement doCreateViewWorkWeekButton()
Creates a View-Button

Returns:
ConcreteElement

doCreateViewWeekButton

protected org.apache.ecs.ConcreteElement doCreateViewWeekButton()
Creates a View-Button

Returns:
ConcreteElement

doCreateViewMonthButton

protected org.apache.ecs.ConcreteElement doCreateViewMonthButton()
Creates a View-Button

Returns:
ConcreteElement

doCreateViewYearButton

protected org.apache.ecs.ConcreteElement doCreateViewYearButton()
Creates a View-Button

Returns:
ConcreteElement

doCreateCreateButton

protected org.apache.ecs.ConcreteElement doCreateCreateButton()
Creates the New-Button

Returns:
ConcreteElement

doCreateRefreshButton

protected org.apache.ecs.ConcreteElement doCreateRefreshButton()
Creates the Refresh-Button

Returns:
ConcreteElement

doCreateExportButton

protected org.apache.ecs.ConcreteElement doCreateExportButton(boolean empty)
Creates the Export-Button

Parameters:
empty - Indicates an empty list
Returns:
ConcreteElement

doCreatePrintButton

protected org.apache.ecs.ConcreteElement doCreatePrintButton(boolean empty)
Creates the Print-Button

Parameters:
empty - Indicates an empty list
Returns:
ConcreteElement

doCreateTitleButtons

protected java.util.Collection doCreateTitleButtons(DefSchedulerViewPainter viewPainter)
Creates the buttons in the frame header

Parameters:
viewPainter - The current view painter
Returns:
collection of ConcreteElement Items

doCreateBody

protected org.apache.ecs.ConcreteElement doCreateBody()
This method creates the body of the scheduler control

Returns:
ConcreteElement

doCreateHeader

protected org.apache.ecs.ConcreteElement doCreateHeader()
Creates an additional header.

Returns:
ConcreteElement

doCreateFooter

protected org.apache.ecs.ConcreteElement doCreateFooter()
Creates an additional footer.

Returns:
ConcreteElement

doCreateFrames

protected org.apache.ecs.ConcreteElement doCreateFrames(AlignmentType alignmentFilter)
Creates a frame container with all frames that match the given filter

Parameters:
alignmentFilter - the filter
Returns:
Frame container or null

getFrameTitle

protected FrameTitle getFrameTitle()
Creates the Title for the Frame

Returns:
Frame Title or null

doCreateElement

protected org.apache.ecs.ConcreteElement doCreateElement()
Description copied from class: ControlPainter
Creates the HTML-Element. This Method must be implemented by the concrete Sub-Class

Specified by:
doCreateElement in class ControlPainter
Returns:
ConcreteElement
See Also:
ControlPainter.doCreateElement()

getElementClass

public java.lang.String getElementClass(int type)
Description copied from class: ControlPainter
The method returns the HTML style class required for a list or treelist control.

Overrides:
getElementClass in class DefPainterBase
See Also:
ControlPainter.getElementClass(int)

doCreateScript

protected JavaScript doCreateScript()
Creates the Java Script Code which is needed by the control

Returns:
Java Script Code


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