|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.clay.parser.builder.Builder
org.apache.shale.clay.parser.builder.SelectItemBuilder
public class SelectItemBuilder
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.
| Field Summary |
|---|
| Fields inherited from class org.apache.shale.clay.parser.builder.Builder |
|---|
messages |
| Constructor Summary | |
|---|---|
SelectItemBuilder()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.shale.clay.parser.builder.Builder |
|---|
assignAttributes, assignNode, createAttribute, createElement, encode, encodeChildren, encodeEnd, getBuilder, getRenderId, isChildrenAllowed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectItemBuilder()
| Method Detail |
|---|
protected String getJsfid(Node node)
Returns a jsfid that will be set on the
target ElementBean.
getJsfid in class Buildernode - markup
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 Buildernode - markup
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.
encodeBegin in class Buildernode - markuptarget - child config beanroot - parent config bean
protected boolean getBuildNodeBody(Node node,
ElementBean target)
Returns true by default meaning that the
parent will render children.
getBuildNodeBody in class Buildernode - markuptarget - child config bean
false if the node's children should be ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||