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

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.DefPanelPainter

public class DefPanelPainter
extends DefPainterBase

Painter for the Panel Control

Since:
1.0
Version:
$Revision: 1.28 $
Author:
Harald Schulz

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
DefPanelPainter(PainterContext painterContext, PanelControl ctrl)
          Constructor
 
Method Summary
protected  org.apache.ecs.ConcreteElement doCreateBody(PanelContentDesignModel content)
          Paints the Panel Body
protected  java.lang.StringBuffer doCreateDetail(PanelContentDesignModel content, PanelItemDesignModel item)
          Creates the detail
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML Code for the following Elements: Title Body Footer (optional)
protected  java.lang.StringBuffer doCreateImage(ImageModel image)
          Creates the image
protected  java.lang.StringBuffer doCreateLink(PanelContentDesignModel content, PanelItemDesignModel item)
          Creates the hyperlink
protected  java.lang.StringBuffer doCreateSpacer()
          Creates a Spacer between the items
protected  boolean filter(PanelContentDesignModel content)
          Retrieves the filter setting for a given content element
protected  boolean filter(PanelContentDesignModel content, PanelItemDesignModel item)
          Retrieves the filter setting for a given item element
protected  PanelControl getCtrl()
          Retrieves the control for this painter
protected  FrameTitle getFrameTitle()
          Creates the Title for the Frame
protected  FrameTitle getFrameTitle(PanelContentDesignModel content)
          Creates the Title for the Frame
protected  java.util.Locale getLocale(PanelContentDesignModel content)
          Retrieves the locale to use for a given content element
protected  java.util.Locale getLocale(PanelContentDesignModel content, PanelItemDesignModel item)
          Retrieves the locale to use for a given content element
 
Methods inherited from class com.cc.framework.ui.painter.def.DefPainterBase
createHelpElement, createHelpElement, doCreateHelpButton, doCreateHelpIcon, getElementClass
 
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
 

Constructor Detail

DefPanelPainter

public DefPanelPainter(PainterContext painterContext,
                       PanelControl ctrl)
Constructor

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

getCtrl

protected PanelControl getCtrl()
Retrieves the control for this painter

Returns:
Control

filter

protected boolean filter(PanelContentDesignModel content)
Retrieves the filter setting for a given content element

Parameters:
content - Content element
Returns:
Boolean

filter

protected boolean filter(PanelContentDesignModel content,
                         PanelItemDesignModel item)
Retrieves the filter setting for a given item element

Parameters:
content - Content element
item - Panel item
Returns:
Boolean

getLocale

protected java.util.Locale getLocale(PanelContentDesignModel content)
Retrieves the locale to use for a given content element

Parameters:
content - Content element
Returns:
Locale

getLocale

protected java.util.Locale getLocale(PanelContentDesignModel content,
                                     PanelItemDesignModel item)
Retrieves the locale to use for a given content element

Parameters:
content - Content element
item - Panel item
Returns:
Locale

doCreateBody

protected org.apache.ecs.ConcreteElement doCreateBody(PanelContentDesignModel content)
Paints the Panel Body

Parameters:
content - Panel Content
Returns:
ConcreteElement

doCreateImage

protected java.lang.StringBuffer doCreateImage(ImageModel image)
Creates the image

Parameters:
image - The ImageModel for the current panel item
Returns:
StringBuffer

doCreateLink

protected java.lang.StringBuffer doCreateLink(PanelContentDesignModel content,
                                              PanelItemDesignModel item)
Creates the hyperlink

Parameters:
content - Content element
item - The PanelItemDesignModel for the current panel item
Returns:
StringBuffer

doCreateDetail

protected java.lang.StringBuffer doCreateDetail(PanelContentDesignModel content,
                                                PanelItemDesignModel item)
Creates the detail

Parameters:
content - Content element
item - The PanelItemDesignModel for the current panel item
Returns:
StringBuffer

doCreateSpacer

protected java.lang.StringBuffer doCreateSpacer()
Creates a Spacer between the items

Returns:
StringBuffer

getFrameTitle

protected FrameTitle getFrameTitle()
Creates the Title for the Frame

Returns:
Frame Title or null

getFrameTitle

protected FrameTitle getFrameTitle(PanelContentDesignModel content)
Creates the Title for the Frame

Parameters:
content - The Panel content section
Returns:
Frame Title or null

doCreateElement

protected org.apache.ecs.ConcreteElement doCreateElement()
Creates the HTML Code for the following Elements:

Specified by:
doCreateElement in class ControlPainter
Returns:
ConcreteElement


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