|
||||||||||
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.SelectOneMenuBuilder
public class SelectOneMenuBuilder
This Builder
will create a target
ElementBean
for a single
select html Node
. The mapping between the
html and the builder is handled by the
SelectBuilderRule
.
Field Summary |
---|
Fields inherited from class org.apache.shale.clay.parser.builder.Builder |
---|
messages |
Constructor Summary | |
---|---|
SelectOneMenuBuilder()
|
Method Summary | |
---|---|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Remove any child nodes that are not "option" nodes. |
protected String |
getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlSelectOneMenu that will populate the
target ElementBean . |
protected String |
getJsfid(Node node)
Returns the jsfid that will populate the target
ElementBean . |
boolean |
isChildrenAllowed()
Returns a true value indicating 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 SelectOneMenuBuilder()
Method Detail |
---|
protected String getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlSelectOneMenu
that will populate the
target ElementBean
.
getComponentType
in class Builder
node
- markup node
protected String getJsfid(Node node)
Returns the jsfid
that will populate the target
ElementBean
.
getJsfid
in class Builder
node
- markup node
public boolean isChildrenAllowed()
Returns a true
value indicating that the target JSF
component can have children.
isChildrenAllowed
in class Builder
true
protected void encodeBegin(Node node, ElementBean target, ComponentBean root)
Remove any child nodes that are not "option" nodes.
encodeBegin
in class Builder
node
- markuptarget
- child noderoot
- child's parent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |