public interface RowModalFormAction<A extends RowModalFormAction<A>> extends ModalFormAction<A>
ModalFormAction
for row-level actions within a grid. This action is primarily
useful in scenarios when interacting with an ad-hoc submission API that does not follow typical
CRUD conventions.Modifier and Type | Interface and Description |
---|---|
static class |
RowModalFormAction.Attributes |
static class |
RowModalFormAction.EndpointTypes |
FormAction.Keys
Modifier and Type | Method and Description |
---|---|
default Optional<Endpoint<?>> |
findSubmitEndpoint()
Retrieve the
RowModalFormAction.EndpointTypes.SUBMIT endpoint. |
default Endpoint<?> |
getSubmitEndpoint()
Retrieve the
RowModalFormAction.EndpointTypes.SUBMIT endpoint. |
default A |
iconName(String iconName)
The name of the icon to use for the row action.
|
default A |
mapInitialValues(Collection<Mapping<?>> mappingsToAdd)
Configure mappings from the row or context to the create form's state.
|
default A |
mapInitialValues(Mapping<?>... mappingsToAdd)
Configure mappings from the row or context to the form's initial state.
|
default A |
notRefreshOnMount()
Undo a previous call to
refreshOnMount() . |
default A |
refreshOnMount()
Indicate this action should trigger a refresh of the parent
FetchGrid after a
successful submission. |
default A |
submitEndpoint(Endpoint<?> endpoint)
Configure the
RowModalFormAction.EndpointTypes.SUBMIT endpoint. |
default A |
submitEndpoint(UnaryOperator<Endpoint<?>> fn)
Configure the
RowModalFormAction.EndpointTypes.SUBMIT endpoint. |
default A |
submitScope(String scope)
Configure the
RowModalFormAction.EndpointTypes.SUBMIT endpoint scope. |
default A |
submitUrl(String url)
Configure the
RowModalFormAction.EndpointTypes.SUBMIT endpoint URL. |
default A |
submitUrl(String url,
String scope)
Configure the
RowModalFormAction.EndpointTypes.SUBMIT endpoint URL and scope. |
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 iconName(String iconName)
See http://www.zondicons.com/icons.html for a list of icon names available.
iconName
- the name of the icon.default A mapInitialValues(Mapping<?>... mappingsToAdd)
// maps the row's "id" to the "productId" field in the create form action.mapInitialValues(Mappings.mapValue("row.id", "productId");
mappingsToAdd
- the mappings to adddefault A mapInitialValues(Collection<Mapping<?>> mappingsToAdd)
mappingsToAdd
- the mappings to addfor more details
default A refreshOnMount()
FetchGrid
after a
successful submission.default A notRefreshOnMount()
refreshOnMount()
.default A submitEndpoint(Endpoint<?> endpoint)
RowModalFormAction.EndpointTypes.SUBMIT
endpoint.endpoint
- the endpointdefault A submitEndpoint(UnaryOperator<Endpoint<?>> fn)
RowModalFormAction.EndpointTypes.SUBMIT
endpoint.fn
- the function to configure the endpointdefault A submitUrl(String url)
RowModalFormAction.EndpointTypes.SUBMIT
endpoint URL.url
- the endpoint urldefault A submitScope(String scope)
RowModalFormAction.EndpointTypes.SUBMIT
endpoint scope.scope
- the endpoint scopedefault A submitUrl(String url, String scope)
RowModalFormAction.EndpointTypes.SUBMIT
endpoint URL and scope.url
- the endpoint urlscope
- the endpoint scopedefault Endpoint<?> getSubmitEndpoint()
RowModalFormAction.EndpointTypes.SUBMIT
endpoint.default Optional<Endpoint<?>> findSubmitEndpoint()
RowModalFormAction.EndpointTypes.SUBMIT
endpoint.Copyright © 2021. All rights reserved.