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. |
public static final RenderCondition TRUE
true
.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
otherwise"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"