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

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.HtmlTextareaPainter
Direct Known Subclasses:
HtmlTextPopupPainter

public class HtmlTextareaPainter
extends HtmlPainterBase

Painter for the TextArea Control

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

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
HtmlTextareaPainter(PainterContext painterContext, TextareaControl ctrl)
          Constructor for HtmlTextareaPainter
 
Method Summary
protected  org.apache.ecs.ConcreteElement doAttachDecorations(org.apache.ecs.ConcreteElement control)
          Attaches all decoration elements that are stored in the painter context to the left side of the control.
protected  org.apache.ecs.ConcreteElement doCreateElement()
          Creates the HTML-Element.
protected  org.apache.ecs.ConcreteElement doCreateLengthControledElement(org.apache.ecs.ConcreteElement nested)
          Encapsulates the given HTML Element in an length controlling container
protected  org.apache.ecs.ConcreteElement doCreateTextArea()
          Creates the textarea element
protected  TextareaControl getCtrl()
          Retrieves the control for this painter
protected  java.lang.String getValue()
          Retrieves the value for the textarea 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, 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

HtmlTextareaPainter

public HtmlTextareaPainter(PainterContext painterContext,
                           TextareaControl ctrl)
Constructor for HtmlTextareaPainter

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

getCtrl

protected TextareaControl getCtrl()
Retrieves the control for this painter

Returns:
Control

doCreateTextArea

protected org.apache.ecs.ConcreteElement doCreateTextArea()
Creates the textarea element

Returns:
HTML Element

doCreateLengthControledElement

protected org.apache.ecs.ConcreteElement doCreateLengthControledElement(org.apache.ecs.ConcreteElement nested)
Encapsulates the given HTML Element in an length controlling container

Parameters:
nested - The nested element
Returns:
HTML Element

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

doAttachDecorations

protected org.apache.ecs.ConcreteElement doAttachDecorations(org.apache.ecs.ConcreteElement control)
Description copied from class: ControlPainter
Attaches all decoration elements that are stored in the painter context to the left side of the control. The Decorations collection will be removed from the painter context.

Overrides:
doAttachDecorations in class ControlPainter
Parameters:
control - The Controls HTML representation
Returns:
returns the decorated Control
See Also:
ControlPainter.doAttachDecorations(org.apache.ecs.ConcreteElement)

getValue

protected java.lang.String getValue()
Retrieves the value for the textarea control

Returns:
value


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