|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.corelib.base.AbstractConditional org.apache.tapestry5.corelib.components.Unless
public class Unless
A close relative of the If
component that inverts the meaning of its
test. This is easier than an If
component with the negate parameter set to true
.
Component Parameters | ||||||
---|---|---|---|---|---|---|
Name | Description | Type | Flags | Default | Default Prefix | Since |
else | 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. | org. | literal | |||
test | If true, then the body of the component is omitted. If false, the body is rendered. | boolean | Required | prop |
Constructor Summary | |
---|---|
Unless()
|
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 |
---|
public Unless()
Method Detail |
---|
protected boolean test()
AbstractConditional
test
in class AbstractConditional
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |