Interface ResidentMapField<F extends ResidentMapField<F>>
- All Superinterfaces:
Comparable<F>,Component<F>,Copyable<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 classstatic final classstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptiondefault FaddCreateAction(ResidentMapCreateAction<?> createAction) Adds theResidentMapField.ActionTypes.CREATEaction.default FaddDeleteAction(Action<?> deleteAction) Adds theResidentMapField.ActionTypes.DELETEaction.default FaddEntryAction(String type, Action<?> action) Adds anResidentMapField.ActionPlacements.ENTRYaction.default FaddMapAction(String type, Action<?> action) Adds anResidentMapField.ActionPlacements.MAPaction.default FaddUpdateAction(ModalFormAction<?> updateAction) Adds theResidentMapField.ActionTypes.UPDATEaction.default FSets the entries to be collapsed by default.default FSelects theResidentMapField.ActionTypes.CREATEaction for functional customization.default FdeleteAction(UnaryOperator<Action<?>> fn) Selects theResidentMapField.ActionTypes.DELETEaction for functional customization.default FemptyMessage(String emptyMessageKey) Sets the message that is displayed when no entries are defined.default Optional<ResidentMapCreateAction<?>>Finds theResidentMapField.ActionTypes.CREATEaction.Finds theResidentMapField.ActionTypes.DELETEaction.findEntryAction(String type) Finds theResidentMapField.ActionPlacements.ENTRYaction with the provided type.findMapAction(String type) Finds theResidentMapField.ActionPlacements.MAPaction with the provided type.default Optional<ModalFormAction<?>>Finds theResidentMapField.ActionTypes.UPDATEaction.default ResidentMapCreateAction<?>Retrieves theResidentMapField.ActionTypes.CREATEaction.default Action<?>Retrieves theResidentMapField.ActionTypes.DELETEaction.default Action<?>getEntryAction(String type) Retrieves theResidentMapField.ActionPlacements.ENTRYaction with the provided type.default Action<?>getMapAction(String type) Retrieves theResidentMapField.ActionPlacements.MAPaction with the provided type.default ModalFormAction<?>Retrieves theResidentMapField.ActionTypes.UPDATEaction.default FSets the entries to NOT be collapsed by default.default FupdateAction(UnaryOperator<ModalFormAction<?>> fn) Selects theResidentMapField.ActionTypes.UPDATEaction for functional customization.Methods inherited from interface java.lang.Comparable
compareToMethods 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, findComponent, findComponent, findComponents, 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, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
clearReadOnlyConditionals, 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, validationSchemaMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltipMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, findColumn, getColumn, idKey, removeColumn
-
Method Details
-
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.ENTRYaction.- Parameters:
type- the type of the actionaction- the action- Returns:
- this
-
getEntryAction
Retrieves theResidentMapField.ActionPlacements.ENTRYaction with the provided type.- Parameters:
type- the action type- Returns:
- the action, if it exists
-
findEntryAction
Finds theResidentMapField.ActionPlacements.ENTRYaction with the provided type.- Parameters:
type- the action type- Returns:
- an optional with the action, or empty
-
addMapAction
Adds anResidentMapField.ActionPlacements.MAPaction.- Parameters:
type- the type of the actionaction- the action- Returns:
- this
-
getMapAction
Retrieves theResidentMapField.ActionPlacements.MAPaction with the provided type.- Parameters:
type- the action type- Returns:
- the action, if it exists
-
findMapAction
Finds theResidentMapField.ActionPlacements.MAPaction with the provided type.- Parameters:
type- the action type- Returns:
- an optional with the action, or empty
-
addCreateAction
Adds theResidentMapField.ActionTypes.CREATEaction.- Parameters:
createAction- the create action- Returns:
- this
-
createAction
Selects theResidentMapField.ActionTypes.CREATEaction for functional customization.- Parameters:
fn- the function to customize- Returns:
- this
-
getCreateAction
Retrieves theResidentMapField.ActionTypes.CREATEaction.- Returns:
- the action, if it exists
-
findCreateAction
Finds theResidentMapField.ActionTypes.CREATEaction.- Returns:
- an optional with the action, or empty
-
addDeleteAction
Adds theResidentMapField.ActionTypes.DELETEaction.- Parameters:
deleteAction- the delete action- Returns:
- this
-
deleteAction
Selects theResidentMapField.ActionTypes.DELETEaction for functional customization.- Parameters:
fn- the function to customize- Returns:
- this
-
getDeleteAction
Retrieves theResidentMapField.ActionTypes.DELETEaction.- Returns:
- the action, if it exists
-
findDeleteAction
Finds theResidentMapField.ActionTypes.DELETEaction.- Returns:
- an optional with the action, or empty
-
addUpdateAction
Adds theResidentMapField.ActionTypes.UPDATEaction.- Parameters:
updateAction- the update action- Returns:
- this
-
updateAction
Selects theResidentMapField.ActionTypes.UPDATEaction for functional customization.- Parameters:
fn- the function to customize- Returns:
- this
-
getUpdateAction
Retrieves theResidentMapField.ActionTypes.UPDATEaction.- Returns:
- the action, if it exists
-
findUpdateAction
Finds theResidentMapField.ActionTypes.UPDATEaction.- Returns:
- an optional with the action, or empty
-