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 RenderConditionFALSEThe condition that always returnsfalse.static RenderConditionTRUEThe 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 booleancheck()Returnstrueif the component should be rendered;falseotherwise.
-
-
-
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:RenderConditionReturnstrueif the component should be rendered;falseotherwise.- Specified by:
checkin interfaceRenderCondition- Returns:
trueif the component should be rendered,falseotherwise
-
-