Interface ModalLinkColumn<C extends ModalLinkColumn<C>>
- All Superinterfaces:
Column<C>,Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Form<C>,Serializable,Trackable<C>
- All Known Implementing Classes:
DefaultModalLinkColumn
public interface ModalLinkColumn<C extends ModalLinkColumn<C>>
extends Column<C>, Form<C>, Trackable<C>
Represents the metadata for a
ColumnTypes.MODAL_LINK column. This will render a link in a
column that when activated opens a modal form.
By default, a ModalLinkColumn.EndpointTypes.SUBMIT endpoint can be defined that will be called when the
modal is submitted. This interface can be extended to create specific modals for creation,
updating, and deleting entities, and other endpoints for other specific actions.
- Since:
- Metadata Service 2.0.8, Release Train 2.1.6
- Author:
- Julia Lopez-Pozas (jlopezpozas)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault CEnables autofocus for the modal.default CautoFocus(boolean autoFocus) Sets whether the modal should automatically focus on the first input field when opened.default CcloseButtonLabel(InternationalizedMessage closeButtonLabel) Sets the label for the close button in the footer of the modal.default CcloseButtonLabel(String closeButtonLabelKey) Sets the label for the close button in the footer of the modal.Retrieve theModalLinkColumn.EndpointTypes.SUBMITendpoint.default Endpoint<?>Retrieve theModalLinkColumn.EndpointTypes.SUBMITendpoint.default CSets the size for the modal dialog.default CDisables autofocus for the modal.default CDisables the close button in the footer of the modal.default CRemoves the submit confirmation message.default CEnables the close button in the footer of the modal.default CshowCloseButtonInFooter(boolean showCloseButtonInFooter) Sets whether to show a close button in the footer of the modal.default CsubmitColor(String submitColor) Sets the color for the submit button within the modal form.default CSets a message to display to the before submitting the modal form.default CsubmitConfirmationMessage(String messageKey) Sets a message key to display to the before submitting the modal form.default CsubmitEndpoint(Endpoint<?> endpoint) Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint.default CsubmitEndpoint(UnaryOperator<Endpoint<?>> fn) Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint.default CsubmitLabel(InternationalizedMessage submitLabel) Sets the label for the submit button within the modal form.default CsubmitLabel(String submitLabelKey) Sets the label for the submit button within the modal form.default CsubmitScope(String scope) Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint scope.default CConfigure theModalLinkColumn.EndpointTypes.SUBMITendpoint URL.default CConfigure theModalLinkColumn.EndpointTypes.SUBMITendpoint URL and scope.default CtitleField(String titleField) Sets the field to get the modal title from.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, widthMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, addSimpleComponent, apply, attribute, augmentable, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentableFlag, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentable, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClassMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Form
addExternal, addExternal, addField, addField, addField, addFields, addFormComponents, addGroup, addGroup, addMessage, addMessage, external, field, findExternal, findField, findGroup, findMessage, getExternal, getField, getGroup, getMessage, group, message, removeExternal, removeField, removeGroup, removeMessageMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Trackable
applicationTrackable, applicationTrackable, auditable, auditable, catalogTrackable, customerContextTrackable, notAuditable, notCatalogTrackable, notCustomerContextTrackable, notProfileTrackable, notSandboxTrackable, notSearchGroupTrackable, profileTrackable, sandboxTrackable, searchGroupTrackable
-
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
-
titleField
Sets the field to get the modal title from.- Parameters:
titleField- the field to get the modal title from- Returns:
- the action
-
submitEndpoint
Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint.- Parameters:
endpoint- the endpoint- Returns:
- this
-
submitEndpoint
Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint.- Parameters:
fn- the function to configure the endpoint- Returns:
- this
-
submitUrl
Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint URL.- Parameters:
url- the endpoint url- Returns:
- this
-
submitScope
Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint scope.- Parameters:
scope- the endpoint scope- Returns:
- this
-
submitUrl
Configure theModalLinkColumn.EndpointTypes.SUBMITendpoint URL and scope.- Parameters:
url- the endpoint urlscope- the endpoint scope- Returns:
- this
-
getSubmitEndpoint
Retrieve theModalLinkColumn.EndpointTypes.SUBMITendpoint.- Returns:
- the endpoint
-
findSubmitEndpoint
Retrieve theModalLinkColumn.EndpointTypes.SUBMITendpoint.- Returns:
- an optional with the endpoint
-
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- 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- See Also:
-
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
-
autoFocus
Enables autofocus for the modal.- Returns:
- the action
-
noAutoFocus
Disables autofocus for the modal.- Returns:
- the action
-
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
-
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
-
submitColor
Sets the color for the submit button within the modal form.- Parameters:
submitColor- the submit color- Returns:
- the action
- See Also:
-