Class AbstractConditional
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractConditional
Base class for
If
and Unless
.
Will render its body or the block from its else parameter. If it renders anything and it has an element name, then
it renders the element and its informal parameters.Name | Type | Flags | Default | Default Prefix |
---|---|---|---|---|
else | org. | literal | ||
An alternate org.apache.tapestry5.Block to render if #test() is false. The default, null, means render nothing in that situation. | ||||
then | org. | literal | ||
The org.apache.tapestry5.Block to render if #test() is true. The default, null, means render the component body in that situation.. |
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract 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).
-
Constructor Details
-
AbstractConditional
public AbstractConditional()
-
-
Method Details
-
test
Performs the test via the parameters; return true to render the body of the component, false to render the else block (or nothing).- Returns:
- true to render body
-