public class SelectOneMenuBuilder extends Builder
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
.
Constructor and Description |
---|
SelectOneMenuBuilder() |
Modifier and Type | Method and Description |
---|---|
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. |
assignAttributes, assignNode, createAttribute, createElement, encode, encodeChildren, encodeEnd, getBuilder, getBuildNodeBody, getRenderId
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 nodeprotected String getJsfid(Node node)
Returns the jsfid
that will populate the target
ElementBean
.
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 parentCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.