Class OrRenderCondition
java.lang.Object
com.adobe.granite.ui.components.rendercondition.AbstractCompositeRenderCondition
com.adobe.granite.ui.components.rendercondition.OrRenderCondition
- All Implemented Interfaces:
RenderCondition
The condition that returns
true when any of the sub conditions is
returning true; false otherwise.-
Constructor Summary
ConstructorsConstructorDescriptionOrRenderCondition(SlingHttpServletRequest request, SlingHttpServletResponse response, Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()Returnstrueif the component should be rendered;falseotherwise.
-
Constructor Details
-
OrRenderCondition
public OrRenderCondition(@Nonnull SlingHttpServletRequest request, @Nonnull SlingHttpServletResponse response, @Nonnull Resource resource)
-
-
Method Details
-
check
Description copied from interface:RenderConditionReturnstrueif the component should be rendered;falseotherwise.- Returns:
trueif the component should be rendered,falseotherwise- Throws:
ServletException- in case a servlet error occursIOException- in case an IO error occurs
-