net.sf.tacos.ajax.components
Class Radio

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by net.sf.tacos.ajax.components.Radio
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IRender

public abstract class Radio
extends org.apache.tapestry.AbstractComponent

Implements a component that manages an HTML <input type=radio> form element. Such a component must be wrapped (possibly indirectly) inside a RadioGroup component. [Component Reference]

Radio and RadioGroup are generally not used (except for very special cases). Instead, a PropertySelection component is used.

Author:
Howard Lewis Ship

Constructor Summary
Radio()
           
 
Method Summary
abstract  AjaxWebRequest getAjaxRequest()
          Injected ajax request
abstract  org.apache.tapestry.services.ExpressionEvaluator getExpressionEvaluator()
          Injected ognl parser
abstract  String getIdParameter()
          Should be connected to a parameter named "id" (annotations would be helpful here!).
abstract  Object getValue()
          The value selected
abstract  boolean isDisabled()
          Whether or not disabled in form
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          Renders the form element, or responds when the form containing the element is submitted (by checking Form#isRewinding().
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

Radio

public Radio()
Method Detail

getAjaxRequest

public abstract AjaxWebRequest getAjaxRequest()
Injected ajax request

Parameters:
ajaxRequest -

getExpressionEvaluator

public abstract org.apache.tapestry.services.ExpressionEvaluator getExpressionEvaluator()
Injected ognl parser

Parameters:
expressionEvaluator -

getIdParameter

public abstract String getIdParameter()
Should be connected to a parameter named "id" (annotations would be helpful here!). For components w/o such a parameter, this will simply return null.


renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
Renders the form element, or responds when the form containing the element is submitted (by checking Form#isRewinding().

Specified by:
renderComponent in class org.apache.tapestry.AbstractComponent

isDisabled

public abstract boolean isDisabled()
Whether or not disabled in form

Returns:

getValue

public abstract Object getValue()
The value selected

Returns: