org.apache.tapestry.contrib.components
Class Choose

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
          extended byorg.apache.tapestry.components.Conditional
              extended byorg.apache.tapestry.contrib.components.Choose
All Implemented Interfaces:
org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public abstract class Choose
extends org.apache.tapestry.components.Conditional

This component is a container for When or Otherwise components; it provides the context for mutually exclusive conditional evaluation. [Component Reference]

Author:
David Solis

Constructor Summary
Choose()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.tapestry.components.Conditional
getElement, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
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
 
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

Choose

public Choose()
Method Detail

addBody

public void addBody(org.apache.tapestry.IRender element)

cleanupAfterRender

protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)

evaluateCondition

protected boolean evaluateCondition()

getInvert

public boolean getInvert()

getCondition

public abstract boolean getCondition()

isConditionMet

public abstract boolean isConditionMet()

setConditionMet

public abstract void setConditionMet(boolean value)