net.sf.tacos.components.dojo.form
Class HtmlArea

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.form.AbstractFormComponent
              extended by org.apache.tapestry.dojo.form.AbstractFormWidget
                  extended by net.sf.tacos.components.dojo.form.HtmlArea
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.dojo.form.IFormWidget, org.apache.tapestry.dojo.IWidget, org.apache.tapestry.form.IFormComponent, org.apache.tapestry.form.TranslatedField, org.apache.tapestry.form.ValidatableField, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender

public abstract class HtmlArea
extends org.apache.tapestry.dojo.form.AbstractFormWidget
implements org.apache.tapestry.form.TranslatedField

An html field similar to a textarea field that is wrapped by a dojo Editor2 widget.

This component adds javascript that makes the dojo widget update the value of the textarea (to support async submits) it is bound to.

Author:
andyhot

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
HtmlArea()
           
 
Method Summary
abstract  org.apache.tapestry.services.DataSqueezer getDataSqueezer()
          Injected.
abstract  org.apache.tapestry.engine.IEngineService getDirectService()
          Injected.
abstract  org.apache.tapestry.IScript getScript()
          Injected.
abstract  String getToolbarTemplatePath()
           
abstract  org.apache.tapestry.form.TranslatedFieldSupport getTranslatedFieldSupport()
          Injected.
 List getUpdateComponents()
          
abstract  org.apache.tapestry.form.ValidatableFieldSupport getValidatableFieldSupport()
          Injected.
abstract  Object getValue()
           
 boolean isAsync()
          
 boolean isJson()
          
 boolean isRequired()
           
protected  void renderFormWidget(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          
protected  void rewindFormWidget(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
abstract  void setValue(Object value)
           
 
Methods inherited from class org.apache.tapestry.dojo.form.AbstractFormWidget
getDestroy, renderFormComponent, renderWidget, rewindFormComponent, setDestroy
 
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent
generateClientId, getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainedRenderers, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getInnerRenderers, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.form.TranslatedField
getTranslator
 
Methods inherited from interface org.apache.tapestry.form.ValidatableField
getValidators
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getClientId, getDisplayName, getForm, getName, isDisabled, setName
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 
Methods inherited from interface org.apache.tapestry.IDirectEvent
isStateful, triggerEvent
 

Constructor Detail

HtmlArea

public HtmlArea()
Method Detail

renderFormWidget

protected void renderFormWidget(org.apache.tapestry.IMarkupWriter writer,
                                org.apache.tapestry.IRequestCycle cycle)

Specified by:
renderFormWidget in class org.apache.tapestry.dojo.form.AbstractFormWidget

rewindFormWidget

protected void rewindFormWidget(org.apache.tapestry.IMarkupWriter writer,
                                org.apache.tapestry.IRequestCycle cycle)
Specified by:
rewindFormWidget in class org.apache.tapestry.dojo.form.AbstractFormWidget
See Also:
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)

getToolbarTemplatePath

public abstract String getToolbarTemplatePath()

getValue

public abstract Object getValue()
Since:
2.2 *

setValue

public abstract void setValue(Object value)
Since:
2.2 *

getDataSqueezer

public abstract org.apache.tapestry.services.DataSqueezer getDataSqueezer()
Injected.


getValidatableFieldSupport

public abstract org.apache.tapestry.form.ValidatableFieldSupport getValidatableFieldSupport()
Injected.


getTranslatedFieldSupport

public abstract org.apache.tapestry.form.TranslatedFieldSupport getTranslatedFieldSupport()
Injected.


getDirectService

public abstract org.apache.tapestry.engine.IEngineService getDirectService()
Injected.


getScript

public abstract org.apache.tapestry.IScript getScript()
Injected.


isRequired

public boolean isRequired()
Specified by:
isRequired in interface org.apache.tapestry.form.IFormComponent
Overrides:
isRequired in class org.apache.tapestry.form.AbstractFormComponent
See Also:
AbstractFormComponent.isRequired()

getUpdateComponents

public List getUpdateComponents()


isAsync

public boolean isAsync()


isJson

public boolean isJson()



Copyright © 2005-2008 SourceForge.net. All Rights Reserved.