|
||||||||||
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
org.apache.tapestry.form.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.
Field Summary |
---|
Fields inherited from class org.apache.tapestry.AbstractComponent |
---|
_body, _bodyCount |
Constructor Summary | |
---|---|
RadioGroup()
|
Method Summary | |
---|---|
protected void |
cleanupAfterRender(IRequestCycle cycle)
Invoked by AbstractComponent.render(IMarkupWriter, IRequestCycle) after the component renders. |
static RadioGroup |
get(IRequestCycle cycle)
|
protected boolean |
getCanTakeFocus()
This component can not take focus. |
int |
getNextOptionId()
|
abstract ValidatableFieldSupport |
getValidatableFieldSupport()
Injected. |
boolean |
isRequired()
Returns false. |
boolean |
isRewinding()
|
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(IRequestCycle cycle)
Invoked by AbstractComponent.render(IMarkupWriter, IRequestCycle) to prepare the component to render. |
protected void |
renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked from AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component. |
protected void |
rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked from AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle) to rewind the
component. |
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 |
---|
generateClientId, getForm, getIdParameter, getName, getRenderBodyOnRewind, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, 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, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
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(IRequestCycle 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(IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
to prepare the component to render.
This implementation sets JavaBeans properties from matching bound parameters. The default
implementation of this method is empty.
prepareForRender
in class AbstractComponent
AbstractComponent.prepareForRender(org.apache.tapestry.IRequestCycle)
protected void cleanupAfterRender(IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
after the component renders.
cleanupAfterRender
in class AbstractComponent
AbstractComponent.cleanupAfterRender(org.apache.tapestry.IRequestCycle)
protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractFormComponent
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component.
renderFormComponent
in class AbstractFormComponent
org.apache.tapestry.form.AbstractRequirableField#renderFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractFormComponent
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to rewind the
component. If the component is disabled
this will not be invoked.
rewindFormComponent
in class AbstractFormComponent
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
public abstract ValidatableFieldSupport getValidatableFieldSupport()
public boolean isRequired()
AbstractFormComponent
isRequired
in interface IFormComponent
isRequired
in class AbstractFormComponent
AbstractFormComponent.isRequired()
protected boolean getCanTakeFocus()
getCanTakeFocus
in class AbstractFormComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |