public class SelectManyMenuBuilder extends Builder
This Builder
creates a ElementBean
mapped to a html select Node
by the
SelectBuilderRule
. The JSF component
type for a multi-select is javax.faces.HtmlSelectManyMenu
Constructor and Description |
---|
SelectManyMenuBuilder() |
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 the JSF component type of
javax.faces.HtmlSelectManyMenu that will populate the
target ElementBean . |
protected String |
getJsfid(Node node)
Returns the
jsfid for the target
ElementBean . |
boolean |
isChildrenAllowed()
Returns
true indicating that the multi-select component
can have children. |
assignAttributes, assignNode, createAttribute, createElement, encode, encodeChildren, encodeEnd, getBuilder, getBuildNodeBody, getRenderId
protected String getComponentType(Node node)
Returns the JSF component type of
javax.faces.HtmlSelectManyMenu
that will populate the
target ElementBean
.
getComponentType
in class Builder
node
- markup nodeprotected String getJsfid(Node node)
Returns the jsfid
for the target
ElementBean
.
public boolean isChildrenAllowed()
Returns true
indicating that the multi-select 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
- current markup nodetarget
- bean that will be build from the noderoot
- the parent of the targetCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.