com.cc.framework.ui.painter.html
Class HtmlCheckboxPainter

java.lang.Object
  extended bycom.cc.framework.ui.painter.ControlPainter
      extended bycom.cc.framework.ui.painter.html.HtmlPainterBase
          extended bycom.cc.framework.ui.painter.html.HtmlCheckboxPainter
Direct Known Subclasses:
HtmlRadioPainter

public class HtmlCheckboxPainter
extends HtmlPainterBase

Painter for the Checkbox Control

Since:
1.0
Version:
$Revision: 1.24 $
Author:
Gernot Schulz

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
HtmlCheckboxPainter(PainterContext painterContext, CheckboxControl ctrl)
          Constructor for HtmlCheckboxPainter
 
Method Summary
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML-Element.
protected  CheckboxControl getCtrl()
          Retrieves the control for this painter
protected  java.lang.String getType()
           
protected  java.lang.String getValue()
           
protected  boolean isChecked()
          Retrieves the value for the checkbox 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, encodeURL, endPaint, forceControlName, getAsString, getAwtColor, getColor, getContextPath, getControlName, getDecorationsOnce, getElementClass, 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

HtmlCheckboxPainter

public HtmlCheckboxPainter(PainterContext painterContext,
                           CheckboxControl ctrl)
Constructor for HtmlCheckboxPainter

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

getCtrl

protected CheckboxControl getCtrl()
Retrieves the control for this painter

Returns:
Control

getValue

protected java.lang.String getValue()
Returns:
returns the value that will be sent to the server when the user selects the checkbox

getType

protected java.lang.String getType()
Returns:
returns the type of input element to create

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

isChecked

protected boolean isChecked()
Retrieves the value for the checkbox control

Returns:
value


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