|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.components.Conditional
org.apache.tapestry.contrib.components.When
public abstract class When
Represents an alternative whithin a Choose component.
The default alternative is described by the Otherwise component.
[Component Reference]
| Constructor Summary | |
|---|---|
When()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.tapestry.components.Conditional |
|---|
getCondition, getElement |
| Methods inherited from class org.apache.tapestry.AbstractComponent |
|---|
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, toString |
| Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
|---|
getLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.hivemind.LocationHolder |
|---|
setLocation |
| Methods inherited from interface org.apache.hivemind.Locatable |
|---|
getLocation |
| Constructor Detail |
|---|
public When()
| Method Detail |
|---|
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.Conditionalpublic Choose getChoose()
public void setChoose(Choose value)
value - The choose to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||