org.apache.tapestry.dojo.form
Class DropdownTimePicker
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.dojo.form.AbstractFormWidget
org.apache.tapestry.dojo.form.DropdownTimePicker
- All Implemented Interfaces:
- Locatable, LocationHolder, IFormWidget, IWidget, IFormComponent, TranslatedField, ValidatableField, IComponent, IDirectEvent, IRender
public abstract class DropdownTimePicker
- extends AbstractFormWidget
- implements TranslatedField
Implementation of the dojo DropdownTimePicker widget as a tapestry
component. Wraps a form input field with a date picker icon next to it
that when clicked on reveals a pane to choose time values from.
- Author:
- jkuhnert
| Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setForm, setName, setName |
| Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, toString, triggerEvent |
| 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, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage |
| Methods inherited from interface org.apache.tapestry.IRender |
render |
DropdownTimePicker
public DropdownTimePicker()
getValue
public abstract Date getValue()
- parameter.
setValue
public abstract void setValue(Date value)
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.
- Specified by:
isDisabled in interface IFormComponent
getIconAlt
public abstract String getIconAlt()
- Alt html text for the date icon, what is displayed when mouse hovers over icon.
renderFormWidget
protected void renderFormWidget(IMarkupWriter writer,
IRequestCycle cycle)
- Called when rendering a form widget.
- Specified by:
renderFormWidget in class AbstractFormWidget
- Parameters:
writer - The markup writer to render with.cycle - The cycle associated with request.
rewindFormWidget
protected void rewindFormWidget(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
AbstractFormWidget
- Called during form submission to retrieve submitted input values.
Components should do any validation/retrieval of values in this method.
- Specified by:
rewindFormWidget in class AbstractFormWidget
- Parameters:
writer - The passed in IMarkupWriter will be a NullMarkupWriter, making
any content written ignored.cycle - Typically used to retrieve submitted value via cycle.getParameter(getName()).- See Also:
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)
isRequired
public boolean isRequired()
- Description copied from class:
AbstractFormComponent
- Returns false. Subclasses that might be required must override this method. Typically, this
involves checking against the component's validators.
- Specified by:
isRequired in interface IFormComponent- Overrides:
isRequired in class AbstractFormComponent
- See Also:
AbstractFormComponent.isRequired()
getScript
public abstract IScript getScript()
- Injected.
getTranslatedFieldSupport
public abstract TranslatedFieldSupport getTranslatedFieldSupport()
- Injected.
getValidatableFieldSupport
public abstract ValidatableFieldSupport getValidatableFieldSupport()
- Injected.
Copyright © 2006 Apache Software Foundation. All Rights Reserved.