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

java.lang.Object
  extended bycom.cc.framework.ui.painter.ControlPainter
      extended bycom.cc.framework.ui.painter.def.DefPainterBase
Direct Known Subclasses:
DefButtonPainter, DefCrumbsPainter, DefFormPainter, DefFramePainter, DefGaugePainter, DefHeadlinePainter, DefInfoPainter, DefListPainter, DefMenuButtonPainter, DefMenuPainter, DefMessagePainter, DefPanelPainter, DefRatingPainter, DefRecurrencePatternPainter, DefSchedulerPainter, DefTabbarPainter, DefTreePainter

public abstract class DefPainterBase
extends ControlPainter

Base Class for all painters in the painter.def package

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

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
DefPainterBase(PainterContext painterContext)
          Constructor
 
Method Summary
static org.apache.ecs.ConcreteElement createHelpElement(PainterContext ctx, java.lang.String helpId, java.lang.String imageResourceId, AlignmentType align)
          Creates a Help-Button with the given Help Id
 org.apache.ecs.ConcreteElement createHelpElement(java.lang.String helpId, java.lang.String imageResourceId, AlignmentType align)
          Creates a Help-Button with the given Help Id
 org.apache.ecs.ConcreteElement doCreateHelpButton(java.lang.String helpId)
          Creates a Help-Button with the given Help Id
 org.apache.ecs.ConcreteElement doCreateHelpIcon(java.lang.String helpId)
          Creates a Help-Button with the given Help Id
 java.lang.String getElementClass(int type)
          The method returns the HTML style class required for a list or treelist control.
 
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, doCreateElement, 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

DefPainterBase

public DefPainterBase(PainterContext painterContext)
Constructor

Parameters:
painterContext - The PainterContext
Method Detail

doCreateHelpButton

public org.apache.ecs.ConcreteElement doCreateHelpButton(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

doCreateHelpIcon

public org.apache.ecs.ConcreteElement doCreateHelpIcon(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

createHelpElement

public org.apache.ecs.ConcreteElement createHelpElement(java.lang.String helpId,
                                                        java.lang.String imageResourceId,
                                                        AlignmentType align)
Creates a Help-Button with the given Help Id

Parameters:
helpId - the help id
imageResourceId - image resource
align - Image Alignment
Returns:
ConcreteElement or null when no help button should be painted

createHelpElement

public static org.apache.ecs.ConcreteElement createHelpElement(PainterContext ctx,
                                                               java.lang.String helpId,
                                                               java.lang.String imageResourceId,
                                                               AlignmentType align)
Creates a Help-Button with the given Help Id

Parameters:
ctx - The painter context
helpId - the help id
imageResourceId - image resource
align - Image Alignment
Returns:
ConcreteElement or null when no help button 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 ControlPainter
Parameters:
type - The required style class
Returns:
The style class
See Also:
ControlPainter.getElementClass(int)


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