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

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

public class HtmlComboBoxPainter
extends HtmlPainterBase

Painter for the ComboBox Control

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

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
HtmlComboBoxPainter(PainterContext painterContext, ComboBoxControl ctrl)
          Constructor
 
Method Summary
protected  OptionsIterator createIterator()
          Creates an option iterator
protected  org.apache.ecs.ConcreteElement doCreateComboBox()
          Renders the JavaScript ComboBox
protected  org.apache.ecs.ConcreteElement doCreateDisplayElement()
          Creates the element for display only.
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML-Element.
protected  org.apache.ecs.ConcreteElement doCreateInput()
          Renders the a plain <input> HTML element
protected  ComboBoxControl getCtrl()
          Retrieves the control for this painter
protected  java.lang.String getValue()
          Retrieves the value for the text control in form of a String
 
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

HtmlComboBoxPainter

public HtmlComboBoxPainter(PainterContext painterContext,
                           ComboBoxControl ctrl)
Constructor

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

getCtrl

protected ComboBoxControl getCtrl()
Retrieves the control for this painter

Returns:
Control

createIterator

protected OptionsIterator createIterator()
Creates an option iterator

Returns:
Iterator

doCreateDisplayElement

protected org.apache.ecs.ConcreteElement doCreateDisplayElement()
Creates the element for display only.

Returns:
HTML Element

doCreateInput

protected org.apache.ecs.ConcreteElement doCreateInput()
Renders the a plain <input> HTML element

Returns:
Input element

doCreateComboBox

protected org.apache.ecs.ConcreteElement doCreateComboBox()
Renders the JavaScript ComboBox

Returns:
ComboBox

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

getValue

protected java.lang.String getValue()
Retrieves the value for the text control in form of a String

Returns:
value as String


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