Interface OrderableModalFormAction<A extends OrderableModalFormAction<A>>
-
- All Superinterfaces:
Action<A>,Comparable<A>,Copyable<A>,FormAction<A>,ModalFormAction<A>,Serializable
- All Known Implementing Classes:
DefaultOrderableModalFormAction
public interface OrderableModalFormAction<A extends OrderableModalFormAction<A>> extends ModalFormAction<A>
Represents the metadata for the action used to re-order rows within anOrderablegrid.Must configure the fields
OrderableModalFormAction.FieldNames.MOVE_TO_FRONTandOrderableModalFormAction.FieldNames.POSITION_AFTER_IDin order for this to pass validation and properly support the re-order behavior.- Author:
- Nick Crum (ncrum)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOrderableModalFormAction.FieldDefaultsstatic classOrderableModalFormAction.FieldHelpstatic classOrderableModalFormAction.FieldLabelsstatic classOrderableModalFormAction.FieldNames-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys
-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ModalFormAction
ModalFormAction.Attributes
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default AaddMoveToFront(Field<?> moveToFront)Adds theOrderableModalFormAction.FieldNames.MOVE_TO_FRONTfield.default AaddPositionAfter(LookupField<?> positionAfter)Adds theOrderableModalFormAction.FieldNames.POSITION_AFTER_IDfield.default AmoveToFront(UnaryOperator<Field<?>> fn)Provides theOrderableModalFormAction.FieldNames.MOVE_TO_FRONTFieldwithin this action's form for configuration.default AmoveToFrontDefaults()Configures with the defaultOrderableModalFormAction.FieldDefaults.moveToFront()field.default ApositionAfter(UnaryOperator<LookupField<?>> fn)Provides theOrderableModalFormAction.FieldNames.POSITION_AFTER_IDLookupFieldwithin this action's form for configuration.-
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
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
addExternal, addExternal, addField, addField, addField, addFormComponents, addGroup, addGroup, external, field, findExternal, findField, findGroup, getExternal, getField, getGroup, group, removeExternal, removeField, removeGroup
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ModalFormAction
submitLabel, submitLabel
-
-
-
-
Method Detail
-
addMoveToFront
default A addMoveToFront(Field<?> moveToFront)
Adds theOrderableModalFormAction.FieldNames.MOVE_TO_FRONTfield.- Parameters:
moveToFront- the field- Returns:
- the action
-
moveToFrontDefaults
default A moveToFrontDefaults()
Configures with the defaultOrderableModalFormAction.FieldDefaults.moveToFront()field.- Returns:
- the action
-
moveToFront
default A moveToFront(UnaryOperator<Field<?>> fn)
Provides theOrderableModalFormAction.FieldNames.MOVE_TO_FRONTFieldwithin this action's form for configuration. If no such field exists, one will be created.- Parameters:
fn- a function that configures the field- Returns:
- the action
-
addPositionAfter
default A addPositionAfter(LookupField<?> positionAfter)
Adds theOrderableModalFormAction.FieldNames.POSITION_AFTER_IDfield.- Parameters:
positionAfter- the field- Returns:
- the action
-
positionAfter
default A positionAfter(UnaryOperator<LookupField<?>> fn)
Provides theOrderableModalFormAction.FieldNames.POSITION_AFTER_IDLookupFieldwithin this action's form for configuration. If no such field exists, one will be created.- Parameters:
fn- a function that configures the lookup field- Returns:
- the action
-
-