com.cc.framework.ui.painter.def.frame
Class DefFramePainterBase

java.lang.Object
  extended bycom.cc.framework.ui.painter.ControlPortionPainter
      extended bycom.cc.framework.ui.painter.def.frame.DefFramePainterBase
All Implemented Interfaces:
FramePainter
Direct Known Subclasses:
DefFormFramePainter, DefPanelFramePainter, DefSimpleFramePainter, DefTabbedFramePainter

public abstract class DefFramePainterBase
extends ControlPortionPainter
implements FramePainter

Concrete Frame painter

Version:
$Revision: 1.6 $
Author:
Harald Schulz

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPortionPainter
 
Constructor Summary
DefFramePainterBase()
          Creates a new FramePainter
 
Method Summary
protected  org.apache.ecs.ElementContainer createButtonList(FrameTitle title)
          Helper for rendering buttons
protected  org.apache.ecs.ConcreteElement createHelpButton(java.lang.String helpId)
          Creates a Help-Button with the given Help Id
 Frame createInnerFrame(InnerFrame innerFrame)
          Creates a inner frame
protected  boolean showButtons(FrameTitle title)
          This method checks if any title button is visible
protected  boolean showHelpButton(FrameTitle title)
          This method checks if a help button is visible
 
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, setControlPainter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cc.framework.ui.painter.FramePainter
addSection, createFrame, createFrame, createInnerFrame, createTitle, setControlPainter
 

Constructor Detail

DefFramePainterBase

public DefFramePainterBase()
Creates a new FramePainter

Method Detail

showHelpButton

protected boolean showHelpButton(FrameTitle title)
This method checks if a help button is visible

Parameters:
title - The Frame Title
Returns:
true if the help button is visible

showButtons

protected boolean showButtons(FrameTitle title)
This method checks if any title button is visible

Parameters:
title - The Frame Title
Returns:
true if any title button is visible

createButtonList

protected org.apache.ecs.ElementContainer createButtonList(FrameTitle title)
Helper for rendering buttons

Parameters:
title - The Frames Title
Returns:
ElementContainer

createHelpButton

protected org.apache.ecs.ConcreteElement createHelpButton(java.lang.String helpId)
Creates a Help-Button with the given Help Id

Parameters:
helpId - the help id
Returns:
ConcreteElement or null when no help button should be painted

createInnerFrame

public Frame createInnerFrame(InnerFrame innerFrame)
Description copied from interface: FramePainter
Creates a inner frame

Specified by:
createInnerFrame in interface FramePainter
Parameters:
innerFrame - Attributes of the inner frame
Returns:
Frame element
See Also:
FramePainter.createInnerFrame(com.cc.framework.ui.model.InnerFrame)


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