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
Modifier and TypeFieldDescriptionstatic final RenderCondition
The condition that always returnsfalse
.static final RenderCondition
The condition that always returnstrue
. -
Constructor Summary
ConstructorDescriptionSimpleRenderCondition
(boolean decision) Instantiates based on the given boolean decision. -
Method Summary
Modifier and TypeMethodDescriptionboolean
check()
Returnstrue
if the component should be rendered;false
otherwise.
-
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: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
-