Interface ModalFormAction<A extends ModalFormAction<A>>
- All Superinterfaces:
Action<A>,Comparable<A>,ConditionalAction<A>,Copyable<A>,FormAction<A>,Serializable
- All Known Subinterfaces:
AddAdjustmentModalFormAction<A>,CloneModalFormAction<A>,CreateModalFormAction<A>,EntityModalFormAction<A>,GenerateTemplateAction<A>,OrderableModalFormAction<A>,ResidentMapCreateAction<A>,RowModalFormAction<A>
- All Known Implementing Classes:
DefaultAddAdjustmentModalFormAction,DefaultCloneModalFormAction,DefaultCreateModalFormAction,DefaultEntityModalFormAction,DefaultGenerateTemplateAction,DefaultModalFormAction,DefaultOrderableModalFormAction,DefaultResidentMapCreateAction,DefaultRowModalFormAction
public interface ModalFormAction<A extends ModalFormAction<A>>
extends FormAction<A>, ConditionalAction<A>
Represents the metadata for a modal form action.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys -
Method Summary
Modifier and TypeMethodDescriptiondefault AEnables autofocus for the modal.default AautoFocus(boolean autoFocus) Sets whether the modal should automatically focus on the first input field when opened.default AcloseButtonLabel(InternationalizedMessage closeButtonLabel) Sets the label for the close button in the footer of the modal.default AcloseButtonLabel(String closeButtonLabelKey) Sets the label for the close button in the footer of the modal.default ASets the size for the modal dialog.default ADisables autofocus for the modal.default ADisables the close button in the footer of the modal.default AConvenience method that is the same asreadOnSuccess(true).default AreadOnSuccess(boolean readOnSuccess) Whether a re-fetch should be executed after the modal form action is successfully executed.default ARemoves the submit confirmation message.default AEnables the close button in the footer of the modal.default AshowCloseButtonInFooter(boolean showCloseButtonInFooter) Sets whether to show a close button in the footer of the modal.default AsubmitColor(String submitColor) Sets the color for the submit button within the modal form.default ASets a message to display to the before submitting the modal form.default AsubmitConfirmationMessage(String messageKey) Sets a message key to display to the before submitting the modal form.default AsubmitLabel(InternationalizedMessage submitLabel) Sets the label for the submit button within the modal form.default AsubmitLabel(String submitLabelKey) Sets the label for the submit button within the modal form.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.ConditionalAction
conditional, conditionalMethods 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
-
Method Details
-
submitLabel
Sets the label for the submit button within the modal form.- Parameters:
submitLabel- the submit label- Returns:
- the action
-
submitLabel
Sets the label for the submit button within the modal form.- Parameters:
submitLabelKey- the submit label message key- Returns:
- the action
-
modalSize
Sets the size for the modal dialog. Accepted values aresm,lg, andxl.lgis the default size for modals unless the form has a Query Builder or Rule Builder field, in which case the modal default size isxl.- Parameters:
modalSize- the modal size- Returns:
- the action
-
autoFocus
Sets whether the modal should automatically focus on the first input field when opened. Default is true.- Parameters:
autoFocus- whether to autofocus- Returns:
- the action
- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
-
autoFocus
Enables autofocus for the modal.- Returns:
- the action
- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
-
noAutoFocus
Disables autofocus for the modal.- Returns:
- the action
- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
-
closeButtonLabel
Sets the label for the close button in the footer of the modal. Default is "Close". Implies the close button is shown in the footer.- Parameters:
closeButtonLabel- the close button label- Returns:
- the action
- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
-
closeButtonLabel
Sets the label for the close button in the footer of the modal. Default is "Close".Implies the close button is shown in the footer.- Parameters:
closeButtonLabelKey- the close button label message key- Returns:
- the action
- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
-
submitColor
Sets the color for the submit button within the modal form.Accepted values are
primary,secondary,danger, anddefault. Default isprimary.- Parameters:
submitColor- the submit color- Returns:
- the action
- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
- See Also:
-
submitConfirmationMessage
Sets a message to display to the before submitting the modal form.- Parameters:
message- a message to display to the before submitting the modal form.- Returns:
this- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
- See Also:
-
submitConfirmationMessage
Sets a message key to display to the before submitting the modal form.- Parameters:
messageKey- a message key to display to the before submitting the modal form.- Returns:
this- See Also:
-
removeSubmitConfirmationMessage
Removes the submit confirmation message.- Returns:
this- Since:
- Metadata 2.0.8, Release Train 2.1.6, Metadata 2.0.8, Release Train 2.2.2
- See Also:
-
readOnSuccess
Whether a re-fetch should be executed after the modal form action is successfully executed. The read endpoint that is configured for the grid will be used to trigger this re-fetch.- Parameters:
readOnSuccess- Whether a re-fetch should be triggerred on modal form action success- Returns:
- this
- Since:
- Metadata 2.0.8, Release Train 2.1.6, 2.2.2
- See Also:
-
readOnSuccess
Convenience method that is the same asreadOnSuccess(true).- Returns:
- this
- Since:
- Metadata 2.0.8, Release Train 2.1.6, 2.2.2
-