Class SimpleRenderCondition
- java.lang.Object
-
- com.adobe.granite.ui.components.rendercondition.SimpleRenderCondition
-
- All Implemented Interfaces:
RenderCondition
public final class SimpleRenderCondition extends java.lang.Object implements RenderCondition
A condition that takes a simple boolean for the decision.
-
-
Field Summary
Fields Modifier and Type Field Description static RenderCondition
FALSE
The condition that always returnsfalse
.static RenderCondition
TRUE
The condition that always returnstrue
.
-
Constructor Summary
Constructors Constructor Description SimpleRenderCondition(boolean decision)
Instantiates based on the given boolean decision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check()
Returnstrue
if the component should be rendered;false
otherwise.
-
-
-
Field Detail
-
TRUE
@Nonnull public static final RenderCondition TRUE
The condition that always returnstrue
.
-
FALSE
@Nonnull public static final RenderCondition FALSE
The condition that always returnsfalse
.
-
-
Method Detail
-
check
public boolean check()
Description copied from interface:RenderCondition
Returnstrue
if the component should be rendered;false
otherwise.- Specified by:
check
in interfaceRenderCondition
- Returns:
true
if the component should be rendered,false
otherwise
-
-