Class AndRenderCondition
java.lang.Object
com.adobe.granite.ui.components.rendercondition.AbstractCompositeRenderCondition
com.adobe.granite.ui.components.rendercondition.AndRenderCondition
- All Implemented Interfaces:
RenderCondition
The condition that returns
true when all the sub conditions are
returning true; false otherwise.-
Constructor Summary
ConstructorsConstructorDescriptionAndRenderCondition(SlingHttpServletRequest request, SlingHttpServletResponse response, Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()Returnstrueif the component should be rendered;falseotherwise.
-
Constructor Details
-
AndRenderCondition
public AndRenderCondition(@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
-