Interface OrderableModalFormAction<A extends OrderableModalFormAction<A>>
- All Superinterfaces:
Action<A>
,Comparable<A>
,ConditionalAction<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 class
static final class
static final class
static final class
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
Modifier and TypeMethodDescriptiondefault A
addMoveToFront
(Field<?> moveToFront) Adds theOrderableModalFormAction.FieldNames.MOVE_TO_FRONT
field.default A
addPositionAfter
(LookupField<?> positionAfter) Adds theOrderableModalFormAction.FieldNames.POSITION_AFTER_ID
field.default A
moveToFront
(UnaryOperator<Field<?>> fn) Provides theOrderableModalFormAction.FieldNames.MOVE_TO_FRONT
Field
within this action's form for configuration.default A
Configures with the defaultOrderableModalFormAction.FieldDefaults.moveToFront()
field.default A
positionAfter
(UnaryOperator<LookupField<?>> fn) Provides theOrderableModalFormAction.FieldNames.POSITION_AFTER_ID
LookupField
within 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.ConditionalAction
conditional, conditional
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
modalSize, submitLabel, submitLabel
-
Method Details
-
addMoveToFront
Adds theOrderableModalFormAction.FieldNames.MOVE_TO_FRONT
field.- Parameters:
moveToFront
- the field- Returns:
- the action
-
moveToFrontDefaults
Configures with the defaultOrderableModalFormAction.FieldDefaults.moveToFront()
field.- Returns:
- the action
-
moveToFront
Provides theOrderableModalFormAction.FieldNames.MOVE_TO_FRONT
Field
within 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_ID
field.- Parameters:
positionAfter
- the field- Returns:
- the action
-
positionAfter
Provides theOrderableModalFormAction.FieldNames.POSITION_AFTER_ID
LookupField
within 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
-