Interface GridRowConditionalAction<A extends GridRowConditionalAction<A>>
- All Superinterfaces:
Action<A>,Comparable<A>,Copyable<A>,Serializable
- All Known Implementing Classes:
DefaultGridRowConditionalAction
The
ActionGrid.ActionPlacements.ROW action that can be rendered based on specified
conditions. This action can be used only as of the grid row action e.g. to display the action for
the specified entity status.
For example, to show the action if the status is "FINISHED" use the following:
Actions.gridRowConditional()
.label("Action label")
.conditional(Conditional.when("status")
.equalTo("FINISHED"))
- Author:
- Dima Myroniuk (dmyroniuk)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault Aconditional(Conditional... conditionals) Adds the conditions to render this action.default Aconditional(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, typeMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
conditional
Adds the conditions to render this action.- Parameters:
conditionals- theConditionalto render this action- Returns:
- this action for further customization
-
conditional
Adds the list of conditions to render this action.- Parameters:
conditionals- theConditionalto render this action- Returns:
- this action for further customization
-