org.apache.tapestry5.corelib.components
Class If

java.lang.Object
  extended by org.apache.tapestry5.corelib.base.AbstractConditional
      extended by org.apache.tapestry5.corelib.components.If

public class If
extends AbstractConditional

Conditionally renders its body. May render its tag and any informal parameters.


Constructor Summary
If()
           
 
Method Summary
protected  boolean test()
          Performs the test via the parameters; return true to render the body of the component, false to render the else block (or nothing).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

If

public If()
Method Detail

test

protected boolean test()
Description copied from class: AbstractConditional
Performs the test via the parameters; return true to render the body of the component, false to render the else block (or nothing).

Specified by:
test in class AbstractConditional
Returns:
test parameter (if negate is false), or test parameter inverted (if negate is true)


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.