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

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

public class SelectOneRadioBuilder
extends Builder

This Builder will create a target ElementBean for a single input radio Node. The mapping between the html and the builder is handled by the InputBuilderRule.


Field Summary
 
Fields inherited from class org.apache.shale.clay.parser.builder.Builder
messages
 
Constructor Summary
SelectOneRadioBuilder()
           
 
Method Summary
protected  String getComponentType(Node node)
           Returns a JSF component type of javax.faces.HtmlSelectOneRadio.
protected  String getJsfid(Node node)
           Returns a jsfid that will populate the target ElementBean.
 boolean isChildrenAllowed()
           Returns true meaning that the target JSF component can have children.
 
Methods inherited from class org.apache.shale.clay.parser.builder.Builder
assignAttributes, assignNode, createAttribute, createElement, encode, encodeBegin, 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

SelectOneRadioBuilder

public SelectOneRadioBuilder()
Method Detail

getComponentType

protected String getComponentType(Node node)

Returns a JSF component type of javax.faces.HtmlSelectOneRadio.

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

getJsfid

protected String getJsfid(Node node)

Returns a jsfid that will populate the target ElementBean.

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

isChildrenAllowed

public boolean isChildrenAllowed()

Returns true meaning that the target JSF component can have children.

Overrides:
isChildrenAllowed in class Builder
Returns:
true


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