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

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

public class DefGaugePainter
extends DefPainterBase

Painter for the gauge control

Version:
$Revision: 1.21 $
Author:
Harald Schulz

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
DefGaugePainter(PainterContext painterContext, GaugeControl ctrl)
          Constructor
 
Method Summary
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML-Element.
protected  org.apache.ecs.ConcreteElement doCreateEmptyGauge()
          Creates the HTML code for the empty gauge element
protected  org.apache.ecs.ConcreteElement doCreateGauge()
          Creates the gauge including the optional label
protected  org.apache.ecs.html.Table doCreateSegments()
          Creates the gauge segments
protected  GaugeControl getCtrl()
          Retrieves the control for this painter
 
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

DefGaugePainter

public DefGaugePainter(PainterContext painterContext,
                       GaugeControl ctrl)
Constructor

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

getCtrl

protected GaugeControl getCtrl()
Retrieves the control for this painter

Returns:
Control

doCreateEmptyGauge

protected org.apache.ecs.ConcreteElement doCreateEmptyGauge()
Creates the HTML code for the empty gauge element

Returns:
HTML element

doCreateSegments

protected org.apache.ecs.html.Table doCreateSegments()
Creates the gauge segments

Returns:
HTML

doCreateGauge

protected org.apache.ecs.ConcreteElement doCreateGauge()
Creates the gauge including the optional label

Returns:
HTML

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.