Interface ConditionalAction<A extends ConditionalAction<A>>
- All Superinterfaces:
Action<A>
,Comparable<A>
,Copyable<A>
,Serializable
- All Known Subinterfaces:
AddAdjustmentModalFormAction<A>
,CloneModalFormAction<A>
,CreateModalFormAction<A>
,EntityModalFormAction<A>
,GenerateTemplateAction<A>
,ModalFormAction<A>
,OrderableModalFormAction<A>
,ResidentMapCreateAction<A>
,RowModalFormAction<A>
- All Known Implementing Classes:
DefaultAddAdjustmentModalFormAction
,DefaultCloneModalFormAction
,DefaultConditionalAction
,DefaultCreateModalFormAction
,DefaultEntityModalFormAction
,DefaultGenerateTemplateAction
,DefaultModalFormAction
,DefaultOrderableModalFormAction
,DefaultResidentMapCreateAction
,DefaultRowModalFormAction
The generic action that can be rendered based on specified conditions.
For example, to show the action if the object's name is not blank, use the following:
Actions.conditionalAction() .label("Action label") .conditional(Conditional.when("status").notBlank)
- Author:
- juliap
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault A
conditional
(Conditional... conditionals) Adds the conditions to render this action.default A
conditional
(List<Conditional> conditionals) Adds the list of conditions to render this action.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Action
addComponent, addComponents, addEndpoint, addEndpoint, apply, attribute, clearEndpoints, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAttribute, getAttribute, getAttributes, getComponent, getComponent, getComponents, getComponentsList, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOperationType, getOrder, getPlacement, getScope, getType, hasAttribute, hasComponent, hasEndpoint, id, label, label, operationType, order, placement, removeAttribute, removeComponent, removeEndpoint, scope, self, setAttributes, setComponents, setEndpoints, setId, setLabel, setOperationType, setOrder, setPlacement, setScope, setType, type
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
conditional
Adds the conditions to render this action.- Parameters:
conditionals
- theConditional
to render this action- Returns:
- this action for further customization
-
conditional
Adds the list of conditions to render this action.- Parameters:
conditionals
- theConditional
to render this action- Returns:
- this action for further customization
-