Interface GridRowConditionalAction<A extends GridRowConditionalAction<A>>
-
- All Superinterfaces:
Action<A>
,Comparable<A>
,Copyable<A>
,Serializable
- All Known Implementing Classes:
DefaultGridRowConditionalAction
public interface GridRowConditionalAction<A extends GridRowConditionalAction<A>> extends Action<A>
TheActionGrid.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 Modifier and Type Interface Description static class
GridRowConditionalAction.Attributes
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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 Detail
-
conditional
default A conditional(Conditional... conditionals)
Adds the conditions to render this action.- Parameters:
conditionals
- theConditional
to render this action- Returns:
- this action for further customization
-
conditional
default A conditional(List<Conditional> conditionals)
Adds the list of conditions to render this action.- Parameters:
conditionals
- theConditional
to render this action- Returns:
- this action for further customization
-
-