public interface CloneModalFormAction<A extends CloneModalFormAction<A>> extends ModalFormAction<A>
ModalFormAction
that is used for the cloning of new entities.Modifier and Type | Interface and Description |
---|---|
static class |
CloneModalFormAction.Attributes |
static class |
CloneModalFormAction.EndpointTypes |
FormAction.Keys
Modifier and Type | Method and Description |
---|---|
default A |
addCloneEndpoint(Endpoint<?> endpoint)
Adds the
CloneModalFormAction.EndpointTypes.CLONE endpoint for the component. |
default A |
cloneEndpoint(UnaryOperator<Endpoint<?>> fn)
Configures the
CloneModalFormAction.EndpointTypes.CLONE endpoint for the component. |
default A |
cloneScope(String scope)
Configures the
CloneModalFormAction.EndpointTypes.CLONE endpoint with the given scope. |
default A |
cloneUrl(String url)
Configures the
CloneModalFormAction.EndpointTypes.CLONE endpoint with the given url. |
default A |
cloneUrl(String url,
String scope)
Configures the
CloneModalFormAction.EndpointTypes.CLONE endpoint with the given url and scope. |
default Optional<Endpoint<?>> |
findCloneEndpoint()
Finds the
CloneModalFormAction.EndpointTypes.CLONE endpoint for this component. |
default Endpoint<?> |
getCloneEndpoint()
Retrieves the
CloneModalFormAction.EndpointTypes.CLONE endpoint for this component. |
default A |
redirectLink(Link link)
Defines a redirect to occur following a successful clone operation.
|
default A |
redirectLinkById(String componentId)
Defines a redirect to occur following a successful clone operation.
|
default A |
redirectLinkByPath(String path)
Defines a redirect to occur following a successful clone operation.
|
default A |
transformClone(List<Mapping<?>> mappings)
Configure a set of
Mapping to transform the cloned entity. |
default A |
transformClone(Mapping<?>... mappings)
Configure a set of
Mapping to transform the cloned entity. |
default A |
transformClone(UnaryOperator<List<Mapping<?>>> fn)
Configure a set of
Mapping to transform the cloned entity. |
submitLabel, submitLabel
addExternal, addExternal, addField, addField, addField, addFormComponents, addGroup, addGroup, external, field, findExternal, findField, findGroup, getExternal, getField, getGroup, group, removeExternal, removeField, removeGroup
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
compareTo
default A addCloneEndpoint(Endpoint<?> endpoint)
CloneModalFormAction.EndpointTypes.CLONE
endpoint for the component.endpoint
- the endpointdefault A cloneEndpoint(UnaryOperator<Endpoint<?>> fn)
CloneModalFormAction.EndpointTypes.CLONE
endpoint for the component.fn
- the function to configure the endpointdefault A cloneUrl(String url)
CloneModalFormAction.EndpointTypes.CLONE
endpoint with the given url.url
- the urldefault A cloneScope(String scope)
CloneModalFormAction.EndpointTypes.CLONE
endpoint with the given scope.scope
- the scopedefault A cloneUrl(String url, String scope)
CloneModalFormAction.EndpointTypes.CLONE
endpoint with the given url and scope.url
- the urlscope
- the scopedefault Endpoint<?> getCloneEndpoint()
CloneModalFormAction.EndpointTypes.CLONE
endpoint for this component.for null-safe operation
default Optional<Endpoint<?>> findCloneEndpoint()
CloneModalFormAction.EndpointTypes.CLONE
endpoint for this component.default A redirectLink(Link link)
link
- the link to redirect todefault A redirectLinkByPath(String path)
path
- the path to redirect todefault A redirectLinkById(String componentId)
componentId
- the id of the component to redirect todefault A transformClone(Mapping<?>... mappings)
Mapping
to transform the cloned entity.
A common use case is to transform the name of an entity, for example:
cloneAction.transformClone(Mappings.templateTransform("name", "Clone of ${name}"));
default A transformClone(List<Mapping<?>> mappings)
Mapping
to transform the cloned entity.
A common use case is to transform the name of an entity, for example:
cloneAction.transformClone( Arrays.asList(Mappings.templateTransform("name", "Clone of ${name}")));
default A transformClone(UnaryOperator<List<Mapping<?>>> fn)
Mapping
to transform the cloned entity.
A common use case is to transform the name of an entity, for example:
cloneAction.transformClone( mappings -> mappings.add(Mappings.templateTransform("name", "Clone of ${name}")));
Copyright © 2021. All rights reserved.