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

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

public class DefFramePainter
extends DefPainterBase

Painter for the Frame Control

Version:
$Revision: 1.9 $
Author:
Gernot Schulz

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
DefFramePainter(PainterContext painterContext, FrameControl ctrl)
          Constructor
 
Method Summary
protected  org.apache.ecs.ConcreteElement doCreateBody()
          Creates the form body.
protected  org.apache.ecs.ConcreteElement doCreateCloseButton()
          Creates the Close-Button
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML-Element.
protected  org.apache.ecs.ConcreteElement doCreateMaximizeButton()
          Creates the Maximize-Button
protected  org.apache.ecs.ConcreteElement doCreateMinimizeButton()
          Creates the Minimize-Button
protected  java.util.Collection doCreateTitleButtons()
          Creates the buttons in the title of the frame
protected  FrameControl 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  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
 

Constructor Detail

DefFramePainter

public DefFramePainter(PainterContext painterContext,
                       FrameControl ctrl)
Constructor

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

getCtrl

protected FrameControl getCtrl()
Returns the Control instance

Returns:
Control instance

showFrame

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

Returns:
true if the frame should be painted

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)

doCreateMinimizeButton

protected org.apache.ecs.ConcreteElement doCreateMinimizeButton()
Creates the Minimize-Button

Returns:
ConcreteElement

doCreateMaximizeButton

protected org.apache.ecs.ConcreteElement doCreateMaximizeButton()
Creates the Maximize-Button

Returns:
ConcreteElement

doCreateCloseButton

protected org.apache.ecs.ConcreteElement doCreateCloseButton()
Creates the Close-Button

Returns:
ConcreteElement

doCreateTitleButtons

protected java.util.Collection doCreateTitleButtons()
Creates the buttons in the title of the frame

Returns:
collection of ConcreteElement Items

doCreateBody

protected org.apache.ecs.ConcreteElement doCreateBody()
Creates the form body.

Returns:
ConcreteElement

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()


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