public class SelectItemBuilder extends Builder
This Builder
will create a ElementBean
that will be used to
create a single html option element. The OptionBuilderRule
will
handle mapping the html element to this builder.
Constructor and Description |
---|
SelectItemBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
The default for a single option is to look at the next html node to find
the label.
|
protected boolean |
getBuildNodeBody(Node node,
ElementBean target)
Returns
true by default meaning that the
parent will render children. |
protected String |
getComponentType(Node node)
Returns the JSF component type of
javax.faces.SelectItem
that will populate a ElementBean and create an html option. |
protected String |
getJsfid(Node node)
Returns a
jsfid that will be set on the
target ElementBean . |
assignAttributes, assignNode, createAttribute, createElement, encode, encodeChildren, encodeEnd, getBuilder, getRenderId, isChildrenAllowed
protected String getJsfid(Node node)
Returns a jsfid
that will be set on the
target ElementBean
.
protected String getComponentType(Node node)
Returns the JSF component type of javax.faces.SelectItem
that will populate a ElementBean
and create an html option.
getComponentType
in class Builder
node
- markupprotected void encodeBegin(Node node, ElementBean target, ComponentBean root)
The default for a single option is to look at the next html node to find the label.
encodeBegin
in class Builder
node
- markuptarget
- child config beanroot
- parent config beanprotected boolean getBuildNodeBody(Node node, ElementBean target)
Returns true
by default meaning that the
parent will render children.
getBuildNodeBody
in class Builder
node
- markuptarget
- child config beanfalse
if the node's children should be ignoredCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.