@SupportsInformalParameters public abstract class AbstractConditional extends Object
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 org.apache.tapestry5.corelib.base.AbstractConditional#test() is false. The default, null, means render nothing in that situation. | ||||
then | org. | literal | ||
The org.apache.tapestry5.Block to render if org.apache.tapestry5.corelib.base.AbstractConditional#test() is true. The default, null, means render the component body in that situation.. |
Constructor and Description |
---|
AbstractConditional() |
Modifier and Type | Method and Description |
---|---|
protected 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).
|
public AbstractConditional()
protected abstract boolean test()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.