public abstract class Checkbox extends AbstractFormComponent implements ValidatableField
As of 4.0, this component can be validated.
| Constructor and Description |
|---|
Checkbox() |
| Modifier and Type | Method and Description |
|---|---|
abstract ValidatableFieldSupport |
getValidatableFieldSupport()
Injected.
|
abstract boolean |
getValue() |
boolean |
isRequired()
Returns false.
|
protected void |
renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle) |
protected void |
rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
In traditional HTML, many checkboxes would have the same name but different values.
|
abstract void |
setValue(boolean selected) |
getAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setNameaddAsset, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValidatorsgetClientId, getDisplayName, getForm, getName, isDisabled, setNameaddAsset, 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, setPropertypublic Checkbox()
protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
renderFormComponent in class AbstractFormComponentorg.apache.tapestry.form.validator.AbstractRequirableField#renderRequirableFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)
rewindFormComponent in class AbstractFormComponentpublic abstract boolean getValue()
public abstract void setValue(boolean selected)
public abstract ValidatableFieldSupport getValidatableFieldSupport()
public boolean isRequired()
AbstractFormComponentisRequired in interface IFormComponentisRequired in class AbstractFormComponentAbstractFormComponent.isRequired()