|
||||||||||
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.SelectManyMenuBuilder
public class SelectManyMenuBuilder
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
Field Summary |
---|
Fields inherited from class org.apache.shale.clay.parser.builder.Builder |
---|
messages |
Constructor Summary | |
---|---|
SelectManyMenuBuilder()
|
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 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. |
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 SelectManyMenuBuilder()
Method Detail |
---|
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 node
protected String getJsfid(Node node)
Returns the jsfid
for the target
ElementBean
.
getJsfid
in class Builder
node
- current markup node
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 target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |