|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.clay.parser.builder.Builder org.apache.shale.clay.parser.builder.MorphBuilder
public class MorphBuilder
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.
Field Summary |
---|
Fields inherited from class org.apache.shale.clay.parser.builder.Builder |
---|
messages |
Constructor Summary | |
---|---|
MorphBuilder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.shale.clay.parser.builder.Builder |
---|
assignAttributes, assignNode, createAttribute, createElement, encode, encodeBegin, encodeChildren, encodeEnd, getBuilder, getBuildNodeBody, getRenderId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MorphBuilder()
Method Detail |
---|
protected String getJsfid(Node node)
Returns the jsfid
the
ElementBean
will take.
getJsfid
in class Builder
node
- markup
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
- markup
public boolean isChildrenAllowed()
Returns true
indicating that the JSF component mapped to
this html span tag can have children.
isChildrenAllowed
in class Builder
true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |