org.apache.tapestry.contrib.components
Class Choose

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

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)
Specified by:
addBody in interface org.apache.tapestry.IComponent
Overrides:
addBody in class org.apache.tapestry.AbstractComponent

cleanupAfterRender

protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
Overrides:
cleanupAfterRender in class org.apache.tapestry.AbstractComponent

evaluateCondition

protected boolean evaluateCondition()
Overrides:
evaluateCondition in class org.apache.tapestry.components.Conditional

getInvert

public boolean getInvert()
Specified by:
getInvert in class org.apache.tapestry.components.Conditional

getCondition

public abstract boolean getCondition()
Specified by:
getCondition in class org.apache.tapestry.components.Conditional

isConditionMet

public abstract boolean isConditionMet()

setConditionMet

public abstract void setConditionMet(boolean value)