org.apache.tapestry.dojo.form
Class GTimePicker

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.form.AbstractFormComponent
              extended by org.apache.tapestry.dojo.form.AbstractFormWidget
                  extended by org.apache.tapestry.dojo.form.GTimePicker
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IFormWidget, IWidget, IFormComponent, TranslatedField, ValidatableField, IComponent, IDirectEvent, Component, IRender

public abstract class GTimePicker
extends AbstractFormWidget
implements TranslatedField

Implementation of an html form input field that has a dynamic drop down selection list of time segments displayed in the IPage's Locale.


Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
GTimePicker()
           
 
Method Summary
abstract  IScript getScript()
          Injected.
abstract  TranslatedFieldSupport getTranslatedFieldSupport()
          Injected.
abstract  ValidatableFieldSupport getValidatableFieldSupport()
          Injected.
abstract  Object getValue()
          Core value used to place input in to.
abstract  boolean isDisabled()
          Returns true if the component is disabled.
 boolean isRequired()
          Returns false.
protected  void renderFormWidget(IMarkupWriter writer, IRequestCycle cycle)
          Called when rendering a form widget.
protected  void rewindFormWidget(IMarkupWriter writer, IRequestCycle cycle)
          Called during form submission to retrieve submitted input values.
abstract  void setValue(Object value)
           
 
Methods inherited from class org.apache.tapestry.dojo.form.AbstractFormWidget
getDestroy, renderFormComponent, renderWidget, rewindFormComponent, setDestroy
 
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent
generateClientId, getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainedRenderers, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getInnerRenderers, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
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.TranslatedField
getTranslator
 
Methods inherited from interface org.apache.tapestry.form.ValidatableField
getValidators
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getClientId, getDisplayName, getForm, getName, 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
 
Methods inherited from interface org.apache.tapestry.IDirectEvent
isStateful, triggerEvent
 

Constructor Detail

GTimePicker

public GTimePicker()
Method Detail

getValue

public abstract Object getValue()
Core value used to place input in to.

Returns:
The current bound value, may be null.

setValue

public abstract void setValue(Object 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

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 NullWriter, 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-2008 Apache Software Foundation. All Rights Reserved.