public abstract class When extends org.apache.tapestry.components.Conditional
Choose component.
The default alternative is described by the Otherwise component.
[Component Reference]| Constructor and Description |
|---|
When() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
evaluateCondition() |
Choose |
getChoose() |
boolean |
getInvert() |
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
Renders its wrapped components only if the condition is true and its parent
Choose
allows it. |
void |
setChoose(Choose value)
Sets the choose.
|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, 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, toStringpublic When()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
Choose
allows it. In addition, if element is specified, can emulate that HTML element.renderComponent in class org.apache.tapestry.components.Conditionalprotected boolean evaluateCondition()
evaluateCondition in class org.apache.tapestry.components.Conditionalpublic boolean getInvert()
getInvert in class org.apache.tapestry.components.Conditional