| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
net.sf.tacos.ajax.components.RadioGroup
public abstract class RadioGroup
A special type of form component that is used to contain Radiocomponents. The Radio and
 Radiogroup components work together to update a property of some other object, much like
 a more flexible version of a PropertySelection. [ Component Reference ]
 
As of 4.0, this component can be validated.
| Constructor Summary | |
|---|---|
| RadioGroup() | |
| Method Summary | |
|---|---|
| protected  void | cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle) | 
| static RadioGroup | get(org.apache.tapestry.IRequestCycle cycle)Gets the radio group | 
| protected  boolean | getCanTakeFocus()This component can not take focus. | 
|  int | getNextOptionId()Generates next radio option id | 
| abstract  org.apache.tapestry.form.ValidatableFieldSupport | getValidatableFieldSupport()Injected. | 
|  boolean | isRequired() | 
|  boolean | isRewinding()Whether or not rewinding | 
|  boolean | isSelected(int option)Used by Radiocomponents when rewinding to see if their value was submitted. | 
|  boolean | isSelection(Object value)Returns true if the value is equal to the current selection for the group. | 
| protected  void | prepareForRender(org.apache.tapestry.IRequestCycle cycle) | 
| protected  void | renderFormComponent(org.apache.tapestry.IMarkupWriter writer,
                    org.apache.tapestry.IRequestCycle cycle) | 
| protected  void | rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
                    org.apache.tapestry.IRequestCycle cycle) | 
|  void | updateSelection(Object value)Invoked by the Radiowhich is selected to update the property bound to the selected
 parameter. | 
| Methods inherited from class org.apache.tapestry.form.AbstractFormComponent | 
|---|
| getAlwaysRenderBodyOnRewind, getForm, getIdParameter, getName, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName | 
| Methods inherited from class org.apache.tapestry.AbstractComponent | 
|---|
| addAsset, addBody, addComponent, checkActiveLock, 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, 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.tapestry.form.ValidatableField | 
|---|
| getValidators | 
| Methods inherited from interface org.apache.tapestry.form.IFormComponent | 
|---|
| getClientId, getDisplayName, getForm, getName, isDisabled, setName | 
| Methods inherited from interface org.apache.tapestry.IComponent | 
|---|
| addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty | 
| Methods inherited from interface org.apache.tapestry.IRender | 
|---|
| render | 
| Methods inherited from interface org.apache.hivemind.LocationHolder | 
|---|
| setLocation | 
| Methods inherited from interface org.apache.hivemind.Locatable | 
|---|
| getLocation | 
| Constructor Detail | 
|---|
public RadioGroup()
| Method Detail | 
|---|
public static RadioGroup get(org.apache.tapestry.IRequestCycle cycle)
cycle - 
public int getNextOptionId()
public boolean isRewinding()
public boolean isSelection(Object value)
Radioduring rendering to determine if it should be marked 'checked'.
public void updateSelection(Object value)
Radiowhich is selected to update the property bound to the selected
 parameter.
public boolean isSelected(int option)
Radiocomponents when rewinding to see if their value was submitted.
protected void prepareForRender(org.apache.tapestry.IRequestCycle cycle)
prepareForRender in class org.apache.tapestry.AbstractComponentAbstractComponent.prepareForRender(org.apache.tapestry.IRequestCycle)protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
cleanupAfterRender in class org.apache.tapestry.AbstractComponentAbstractComponent.cleanupAfterRender(org.apache.tapestry.IRequestCycle)
protected void renderFormComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)
renderFormComponent in class org.apache.tapestry.form.AbstractFormComponentorg.apache.tapestry.form.AbstractRequirableField#renderFormComponent(org.apache.tapestry.IMarkupWriter,
      org.apache.tapestry.IRequestCycle)
protected void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)
rewindFormComponent in class org.apache.tapestry.form.AbstractFormComponentAbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter,
      org.apache.tapestry.IRequestCycle)public abstract org.apache.tapestry.form.ValidatableFieldSupport getValidatableFieldSupport()
public boolean isRequired()
isRequired in interface org.apache.tapestry.form.IFormComponentisRequired in class org.apache.tapestry.form.AbstractFormComponentAbstractFormComponent.isRequired()protected boolean getCanTakeFocus()
getCanTakeFocus in class org.apache.tapestry.form.AbstractFormComponent| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||