org.apache.shale.clay.parser.builder
Class InputTextBuilder

java.lang.Object
  extended by org.apache.shale.clay.parser.builder.Builder
      extended by org.apache.shale.clay.parser.builder.InputTextBuilder

public class InputTextBuilder
extends Builder

Builds a ElementBean from a HTML Node where the TextareaBuilderRule handles the mapping.


Field Summary
 
Fields inherited from class org.apache.shale.clay.parser.builder.Builder
messages
 
Constructor Summary
InputTextBuilder()
           
 
Method Summary
protected  void encodeEnd(Node node, ElementBean target, ComponentBean root)
           The default for this builder is that builder will handle the children html nodes meaning that the default should be true.
protected  String getComponentType(Node node)
           Returns the JSF componentType of javax.faces.HtmlInputTextarea used to define the ElementBean from the HTML Node.
protected  String getJsfid(Node node)
           Returns the jsfid used to populate the ElementBean.
 
Methods inherited from class org.apache.shale.clay.parser.builder.Builder
assignAttributes, assignNode, createAttribute, createElement, encode, encodeBegin, encodeChildren, getBuilder, getBuildNodeBody, getRenderId, isChildrenAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputTextBuilder

public InputTextBuilder()
Method Detail

encodeEnd

protected void encodeEnd(Node node,
                         ElementBean target,
                         ComponentBean root)

The default for this builder is that builder will handle the children html nodes meaning that the default should be true. The default can be overridden by the "allowBody" attribute in the component metadata.

Overrides:
encodeEnd in class Builder
Parameters:
node - markup
target - child config bean
root - parent config bean

getJsfid

protected String getJsfid(Node node)

Returns the jsfid used to populate the ElementBean.

Specified by:
getJsfid in class Builder
Parameters:
node - markup
Returns:
jsfid

getComponentType

protected String getComponentType(Node node)

Returns the JSF componentType of javax.faces.HtmlInputTextarea used to define the ElementBean from the HTML Node.

Specified by:
getComponentType in class Builder
Parameters:
node - markup
Returns:
component type


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.