Class SimpleRenderCondition
java.lang.Object
com.adobe.granite.ui.components.rendercondition.SimpleRenderCondition
- All Implemented Interfaces:
RenderCondition
A condition that takes a simple boolean for the decision.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RenderConditionThe condition that always returnsfalse.static final RenderConditionThe condition that always returnstrue. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRenderCondition(boolean decision) Instantiates based on the given boolean decision. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()Returnstrueif the component should be rendered;falseotherwise.
-
Field Details
-
TRUE
The condition that always returnstrue. -
FALSE
The condition that always returnsfalse.
-
-
Constructor Details
-
SimpleRenderCondition
public SimpleRenderCondition(boolean decision) Instantiates based on the given boolean decision.- Parameters:
decision- the decision
-
-
Method Details
-
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
-