|
||||||||||
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.OutputLinkBuilder
public class OutputLinkBuilder
This Builder
will create a target
ElementBean
for a "<a>"
Node
. The mapping between the html and the builder is handled by the
AnchorBuilderRule
.
Field Summary |
---|
Fields inherited from class org.apache.shale.clay.parser.builder.Builder |
---|
messages |
Constructor Summary | |
---|---|
OutputLinkBuilder()
|
Method Summary | |
---|---|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls super to populate the target config bean with the
html node 's values. |
protected String |
getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlOutputLink . |
protected String |
getJsfid(Node node)
Returns a jsfid that will populate the target
ElementBean . |
boolean |
isChildrenAllowed()
Returns true meaning that the target JSF component can
have children. |
Methods inherited from class org.apache.shale.clay.parser.builder.Builder |
---|
assignAttributes, assignNode, createAttribute, createElement, encode, 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 OutputLinkBuilder()
Method Detail |
---|
protected String getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlOutputLink
.
getComponentType
in class Builder
node
- markup
protected String getJsfid(Node node)
Returns a jsfid
that will populate the target
ElementBean
.
getJsfid
in class Builder
node
- markup
public boolean isChildrenAllowed()
Returns true
meaning that the target JSF component can
have children.
isChildrenAllowed
in class Builder
true
protected void encodeBegin(Node node, ElementBean target, ComponentBean root)
Calls super to populate the target
config bean with the
html node
's values. The "href" attribute doesn't have a
corresponding outputLink value so it will become a symbol. If there
is a "value" attribute, connect the component's "value" to the
"@href" symbol.
encodeBegin
in class Builder
node
- markup nodetarget
- config beanroot
- parent config bean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |