org.apache.shale.clay.parser.builder
Class SelectItemsBuilder

java.lang.Object
  extended by org.apache.shale.clay.parser.builder.Builder
      extended by org.apache.shale.clay.parser.builder.SelectItemsBuilder

public class SelectItemsBuilder
extends Builder

This is a Builder that will create a ElementBean for a JSF javax.faces.SelectItems component. This builder is mapped to a Node by the OptionBuilderRule.


Field Summary
 
Fields inherited from class org.apache.shale.clay.parser.builder.Builder
messages
 
Constructor Summary
SelectItemsBuilder()
           
 
Method Summary
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 javax.faces.SelectItems that will be set to the target ElementBean and used to create options for a collection.
protected  String getJsfid(Node node)
           Returns a jsfid used to populate the target ElementBean.
 
Methods inherited from class org.apache.shale.clay.parser.builder.Builder
assignAttributes, assignNode, createAttribute, createElement, encode, encodeBegin, 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

SelectItemsBuilder

public SelectItemsBuilder()
Method Detail

getJsfid

protected String getJsfid(Node node)

Returns a jsfid used to populate the target ElementBean.

Specified by:
getJsfid in class Builder
Parameters:
node - markup
Returns:
jsfid

getComponentType

protected String getComponentType(Node node)

Returns the JSF component type javax.faces.SelectItems that will be set to the target ElementBean and used to create options for a collection.

Specified by:
getComponentType in class Builder
Parameters:
node - markup
Returns:
component type

getBuildNodeBody

protected boolean getBuildNodeBody(Node node,
                                   ElementBean target)

Returns true by default meaning that the parent will render children.

Overrides:
getBuildNodeBody in class Builder
Parameters:
node - markup
target - child bean
Returns:
false if the node body should be ignored


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.