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 an
Orderable grid.
Must configure the fields OrderableModalFormAction.FieldNames.MOVE_TO_FRONT and
OrderableModalFormAction.FieldNames.POSITION_AFTER_ID in order for this to pass validation and properly support
the re-order behavior.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.KeysNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ModalFormAction
ModalFormAction.Attributes -
Method Summary
Modifier and TypeMethodDescriptiondefault 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 AConfigures 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, typeMethods inherited from interface java.lang.Comparable
compareToMethods 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, removeGroupMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ModalFormAction
submitLabel, submitLabel
-
Method Details
-
addMoveToFront
Adds theOrderableModalFormAction.FieldNames.MOVE_TO_FRONTfield.- Parameters:
moveToFront- the field- Returns:
- the action
-
moveToFrontDefaults
Configures with the defaultOrderableModalFormAction.FieldDefaults.moveToFront()field.- Returns:
- the action
-
moveToFront
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
Adds theOrderableModalFormAction.FieldNames.POSITION_AFTER_IDfield.- Parameters:
positionAfter- the field- Returns:
- the action
-
positionAfter
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
-