org.apache.tapestry.form
Class Select
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.form.Select
- All Implemented Interfaces:
- IComponent, IFormComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
- public abstract class Select
- extends AbstractFormComponent
Implements a component that manages an HTML <select> form element. The most common
situation, using a <select> to set a specific property of some object, is best handled
using a PropertySelection
component. [ Component Reference ]
Otherwise, this component is very similar to RadioGroup
.
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, 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.IComponent |
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, 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 |
Select
public Select()
get
public static Select get(IRequestCycle cycle)
isDisabled
public abstract boolean isDisabled()
- Description copied from interface:
IFormComponent
- Returns true if the component is disabled. This is important when the containing
form is submitted, since disabled parameters do not update their bindings.
isMultiple
public abstract boolean isMultiple()
isRewinding
public boolean isRewinding()
getNextOptionId
public java.lang.String getNextOptionId()
isSelected
public boolean isSelected(java.lang.String value)
renderComponent
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Renders the <option> element, or responds when the form containing the element is
submitted (by checking
FormBehavior.isRewinding()
.
- Specified by:
renderComponent
in class AbstractComponent
cleanupAfterRender
protected void cleanupAfterRender(IRequestCycle cycle)
- Description copied from class:
AbstractComponent
- Invoked by
AbstractComponent.render(IMarkupWriter, IRequestCycle)
after the component renders. This
implementation does nothing.
- Overrides:
cleanupAfterRender
in class AbstractComponent