Interface ResidentMapField<F extends ResidentMapField<F>>
- All Superinterfaces:
Comparable<F>
,Component<F>
,Copyable<F>
,CustomCssComponent<F>
,Field<F>
,FormComponent<F>
,Grid<F>
,Serializable
- All Known Implementing Classes:
DefaultResidentMapField
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
static final class
static final class
static final class
-
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE
-
Method Summary
Modifier and TypeMethodDescriptiondefault F
addCreateAction
(ResidentMapCreateAction<?> createAction) Adds theResidentMapField.ActionTypes.CREATE
action.default F
addDeleteAction
(Action<?> deleteAction) Adds theResidentMapField.ActionTypes.DELETE
action.default F
addEntryAction
(String type, Action<?> action) Adds anResidentMapField.ActionPlacements.ENTRY
action.default F
addMapAction
(String type, Action<?> action) Adds anResidentMapField.ActionPlacements.MAP
action.default F
addUpdateAction
(ModalFormAction<?> updateAction) Adds theResidentMapField.ActionTypes.UPDATE
action.default F
Sets the entries to be collapsed by default.default F
Selects theResidentMapField.ActionTypes.CREATE
action for functional customization.default F
deleteAction
(UnaryOperator<Action<?>> fn) Selects theResidentMapField.ActionTypes.DELETE
action for functional customization.default F
emptyMessage
(String emptyMessageKey) Sets the message that is displayed when no entries are defined.default Optional<ResidentMapCreateAction<?>>
Finds theResidentMapField.ActionTypes.CREATE
action.Finds theResidentMapField.ActionTypes.DELETE
action.findEntryAction
(String type) Finds theResidentMapField.ActionPlacements.ENTRY
action with the provided type.findMapAction
(String type) Finds theResidentMapField.ActionPlacements.MAP
action with the provided type.default Optional<ModalFormAction<?>>
Finds theResidentMapField.ActionTypes.UPDATE
action.default ResidentMapCreateAction<?>
Retrieves theResidentMapField.ActionTypes.CREATE
action.default Action<?>
Retrieves theResidentMapField.ActionTypes.DELETE
action.default Action<?>
getEntryAction
(String type) Retrieves theResidentMapField.ActionPlacements.ENTRY
action with the provided type.default Action<?>
getMapAction
(String type) Retrieves theResidentMapField.ActionPlacements.MAP
action with the provided type.default ModalFormAction<?>
Retrieves theResidentMapField.ActionTypes.UPDATE
action.default F
Sets the entries to NOT be collapsed by default.default F
default F
default F
singleValue
(boolean isSingleValue) default F
updateAction
(UnaryOperator<ModalFormAction<?>> fn) Selects theResidentMapField.ActionTypes.UPDATE
action for functional customization.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, 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, 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, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
clearReadOnlyConditionals, decorated, decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getReadOnlyConditionals, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, isTargetCollection, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, readOnlyConditional, readOnlyConditionals, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setReadOnlyConditionals, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, targetIsCollection, targetIsNotCollection, validationMethod, validationSchema, validationSchema
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessage
-
Method Details
-
singleValue
-
notSingleValue
-
singleValue
-
collapsedByDefault
Sets the entries to be collapsed by default.- Returns:
- this
-
notCollapsedByDefault
Sets the entries to NOT be collapsed by default.- Returns:
- this
-
emptyMessage
Sets the message that is displayed when no entries are defined.- Parameters:
emptyMessageKey
- the empty message key- Returns:
- this
-
addEntryAction
Adds anResidentMapField.ActionPlacements.ENTRY
action.- Parameters:
type
- the type of the actionaction
- the action- Returns:
- this
-
getEntryAction
Retrieves theResidentMapField.ActionPlacements.ENTRY
action with the provided type.- Parameters:
type
- the action type- Returns:
- the action, if it exists
-
findEntryAction
Finds theResidentMapField.ActionPlacements.ENTRY
action with the provided type.- Parameters:
type
- the action type- Returns:
- an optional with the action, or empty
-
addMapAction
Adds anResidentMapField.ActionPlacements.MAP
action.- Parameters:
type
- the type of the actionaction
- the action- Returns:
- this
-
getMapAction
Retrieves theResidentMapField.ActionPlacements.MAP
action with the provided type.- Parameters:
type
- the action type- Returns:
- the action, if it exists
-
findMapAction
Finds theResidentMapField.ActionPlacements.MAP
action with the provided type.- Parameters:
type
- the action type- Returns:
- an optional with the action, or empty
-
addCreateAction
Adds theResidentMapField.ActionTypes.CREATE
action.- Parameters:
createAction
- the create action- Returns:
- this
-
createAction
Selects theResidentMapField.ActionTypes.CREATE
action for functional customization.- Parameters:
fn
- the function to customize- Returns:
- this
-
getCreateAction
Retrieves theResidentMapField.ActionTypes.CREATE
action.- Returns:
- the action, if it exists
-
findCreateAction
Finds theResidentMapField.ActionTypes.CREATE
action.- Returns:
- an optional with the action, or empty
-
addDeleteAction
Adds theResidentMapField.ActionTypes.DELETE
action.- Parameters:
deleteAction
- the delete action- Returns:
- this
-
deleteAction
Selects theResidentMapField.ActionTypes.DELETE
action for functional customization.- Parameters:
fn
- the function to customize- Returns:
- this
-
getDeleteAction
Retrieves theResidentMapField.ActionTypes.DELETE
action.- Returns:
- the action, if it exists
-
findDeleteAction
Finds theResidentMapField.ActionTypes.DELETE
action.- Returns:
- an optional with the action, or empty
-
addUpdateAction
Adds theResidentMapField.ActionTypes.UPDATE
action.- Parameters:
updateAction
- the update action- Returns:
- this
-
updateAction
Selects theResidentMapField.ActionTypes.UPDATE
action for functional customization.- Parameters:
fn
- the function to customize- Returns:
- this
-
getUpdateAction
Retrieves theResidentMapField.ActionTypes.UPDATE
action.- Returns:
- the action, if it exists
-
findUpdateAction
Finds theResidentMapField.ActionTypes.UPDATE
action.- Returns:
- an optional with the action, or empty
-