public abstract class Choose extends org.apache.tapestry.components.Conditional
When
or Otherwise components;
it provides the context for mutually exclusive conditional evaluation.
[Component Reference]Constructor and Description |
---|
Choose() |
Modifier and Type | Method and Description |
---|---|
void |
addBody(org.apache.tapestry.IRender element) |
protected void |
cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle) |
protected boolean |
evaluateCondition() |
abstract boolean |
getCondition() |
boolean |
getInvert() |
abstract boolean |
isConditionMet() |
abstract void |
setConditionMet(boolean value) |
addAsset, addComponent, checkActiveLock, 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, toString
public Choose()
public void addBody(org.apache.tapestry.IRender element)
addBody
in interface org.apache.tapestry.IComponent
addBody
in class org.apache.tapestry.AbstractComponent
protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
cleanupAfterRender
in class org.apache.tapestry.AbstractComponent
protected boolean evaluateCondition()
evaluateCondition
in class org.apache.tapestry.components.Conditional
public boolean getInvert()
getInvert
in class org.apache.tapestry.components.Conditional
public abstract boolean getCondition()
getCondition
in class org.apache.tapestry.components.Conditional
public abstract boolean isConditionMet()
public abstract void setConditionMet(boolean value)