|
||||||||||
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 Radio
components. The Radio and
Radio
group 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 Radio components 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 Radio which 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)
Radio
during rendering to determine if it should be marked 'checked'.
public void updateSelection(Object value)
Radio
which is selected to update the property bound to the selected
parameter.
public boolean isSelected(int option)
Radio
components when rewinding to see if their value was submitted.
protected void prepareForRender(org.apache.tapestry.IRequestCycle cycle)
prepareForRender
in class org.apache.tapestry.AbstractComponent
AbstractComponent.prepareForRender(org.apache.tapestry.IRequestCycle)
protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
cleanupAfterRender
in class org.apache.tapestry.AbstractComponent
AbstractComponent.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.AbstractFormComponent
org.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.AbstractFormComponent
AbstractFormComponent.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.IFormComponent
isRequired
in class org.apache.tapestry.form.AbstractFormComponent
AbstractFormComponent.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 |