org.apache.tapestry.components
Class IfBean
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.components.IfBean
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IFormComponent, IComponent, IDirectEvent, Component, IRender
public abstract class IfBean
- extends AbstractFormComponent
- Author:
- mb
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
getForm, getIdParameter, getName, getRenderBodyOnRewind, isRequired, peekClientId, 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 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, 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 |
_log
public static final Log _log
IF_VALUE_ATTRIBUTE
public static final String IF_VALUE_ATTRIBUTE
- See Also:
- Constant Field Values
IfBean
public IfBean()
getConditionValueBinding
public abstract IBinding getConditionValueBinding()
getCondition
public abstract boolean getCondition()
getVolatile
public abstract boolean getVolatile()
getElement
public abstract String getElement()
getRenderTag
public abstract boolean getRenderTag()
getListener
public abstract IActionListener getListener()
renderComponent
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
AbstractFormComponent
- Invoked by
AbstractComponent.render(IMarkupWriter, IRequestCycle)
to actually
render the component (with any parameter values already set).
This implementation checks the rewinding state of the IForm
that contains the
component and forwards processing to either
AbstractFormComponent.renderFormComponent(IMarkupWriter, IRequestCycle)
or
AbstractFormComponent.rewindFormComponent(IMarkupWriter, IRequestCycle)
.
Those two are the methods that subclasses should implement.
- Overrides:
renderComponent
in class AbstractFormComponent
- See Also:
AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
generateClientId
protected void generateClientId()
- Overriden from
AbstractFormComponent
to handle cases where
we're not being wrapped by a IForm
component.
This is basically a copy of the same method implemented in AbstractComponent
.
- Overrides:
generateClientId
in class AbstractFormComponent
evaluateCondition
protected boolean evaluateCondition(IRequestCycle cycle,
IForm form,
boolean cycleRewinding)
getDataSqueezer
public abstract DataSqueezer getDataSqueezer()
isDisabled
public 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.
getConditionValue
public boolean getConditionValue()
- Returns the value of the condition.
- Returns:
- the condition value
renderFormComponent
protected void renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
AbstractFormComponent
- Invoked from
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component.
- Specified by:
renderFormComponent
in class AbstractFormComponent
rewindFormComponent
protected void rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
AbstractFormComponent
- Invoked from
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to rewind the
component. If the component is disabled
this will not be invoked.
- Specified by:
rewindFormComponent
in class AbstractFormComponent
getCanTakeFocus
protected boolean getCanTakeFocus()
- For component can not take focus.
- Overrides:
getCanTakeFocus
in class AbstractFormComponent
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.