public class MorphBuilder extends Builder
This Builder is mapped to the HTML span tag and will morph into any clay
component defined by the jsfid
attribute in the HTML element.
For most of the builder there is an assumed mapping between the source and
target but the HTML span can be mapped to any clay meta component graph. The
SpanBuilderRule
handle
the association of the HTML node with this class.
Constructor and Description |
---|
MorphBuilder() |
Modifier and Type | Method and Description |
---|---|
protected String |
getComponentType(Node node)
Returns a bogus componentType that is overridden by the mapped component
using the
jsfid as an HTML attribute. |
protected String |
getJsfid(Node node)
Returns the
jsfid the
ElementBean will take. |
boolean |
isChildrenAllowed()
Returns
true indicating that the JSF component mapped to
this html span tag can have children. |
assignAttributes, assignNode, createAttribute, createElement, encode, encodeBegin, encodeChildren, encodeEnd, getBuilder, getBuildNodeBody, getRenderId
protected String getJsfid(Node node)
Returns the jsfid
the
ElementBean
will take.
protected String getComponentType(Node node)
Returns a bogus componentType that is overridden by the mapped component
using the jsfid
as an HTML attribute.
getComponentType
in class Builder
node
- markuppublic boolean isChildrenAllowed()
Returns true
indicating that the JSF component mapped to
this html span tag can have children.
isChildrenAllowed
in class Builder
true
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.