public final class SimpleRenderCondition extends java.lang.Object implements RenderCondition
Modifier and Type | Field and Description |
---|---|
static RenderCondition |
FALSE
The condition that always returns
false . |
static RenderCondition |
TRUE
The condition that always returns
true . |
Constructor and Description |
---|
SimpleRenderCondition(boolean decision)
Instantiates based on the given boolean decision.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check()
Returns
true if the component should be rendered; false
otherwise. |
@Nonnull public static final RenderCondition TRUE
true
.@Nonnull public static final RenderCondition FALSE
false
.public SimpleRenderCondition(boolean decision)
decision
- the decisionpublic boolean check()
RenderCondition
true
if the component should be rendered; false
otherwise.check
in interface RenderCondition
true
if the component should be rendered, false
otherwiseCopyright © 2010 - 2020 Adobe. All Rights Reserved