public interface ResourceGrid<G extends ResourceGrid<G>> extends ActionGrid<G>, FetchGrid<G>
ActionGrid
and FetchGrid
that is used for managing
an external resource. These types of grids support retrieving, creating, updating, and deleting
the data for a collection.Modifier and Type | Interface and Description |
---|---|
static class |
ResourceGrid.ActionTypes |
static class |
ResourceGrid.EndpointTypes |
ActionGrid.ActionKeys, ActionGrid.ActionPlacements
Grid.Attributes, Grid.Keys
addGridAction, addGridAction, addRowAction, addRowAction, findGridAction, findRowAction, getGridAction, getRowAction, gridAction, removeGridAction, removeRowAction, rowAction
findReadEndpoint, getReadEndpoint, getReadEndpointType, narrowedPaging, narrowedPaging, numberedPaging, numberedPaging, readEndpoint, readEndpoint, readScope, readUrl, readUrl, unpaged
addColumn, addColumn, addColumn, addColumns, findColumn, getColumn, idKey, removeColumn
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, type
compareTo
default G addAssignAction(CreateModalFormAction<?> createAction)
default G assignAction(UnaryOperator<CreateModalFormAction<?>> fn)
default CreateModalFormAction<?> getAssignAction()
default Optional<CreateModalFormAction<?>> findAssignAction()
default G assignEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getAssignEndpoint()
default G addCreateAction(CreateModalFormAction<?> createAction)
default G createAction(UnaryOperator<CreateModalFormAction<?>> fn)
default CreateModalFormAction<?> getCreateAction()
default Optional<CreateModalFormAction<?>> findCreateAction()
default G createEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getCreateEndpoint()
default G deleteAction(UnaryOperator<Action<?>> fn)
default Action<?> getDeleteAction()
default G deleteEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getDeleteEndpoint()
default G addUpdateAction(ModalFormAction<?> updateAction)
default G updateAction(UnaryOperator<ModalFormAction<?>> fn)
default ModalFormAction<?> getUpdateAction()
default Optional<ModalFormAction<?>> findUpdateAction()
default G updateEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getUpdateEndpoint()
default G updateTranslationsEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getUpdateTranslationsEndpoint()
default G addViewReadOnlyAction(FormAction<?> viewReadOnlyAction)
ActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row
in a read-only form. This is generally used when a row is not editable yet there is a need to
present the details of the row.viewReadOnlyAction
- the action to adddefault G viewReadOnlyAction(UnaryOperator<FormAction<?>> fn)
ActionGrid.ActionPlacements.ROW
action that allows a user to view the details of
the row in a read-only form. This is generally used when a row is not editable yet there is a
need to present the details of the row.fn
- a function to configure the read-only formdefault G viewReadOnlyLabel(String labelKey)
labelKey
- the label or label message keydefault FormAction<?> getViewReadOnlyAction()
default Optional<FormAction<?>> findViewReadOnlyAction()
default G addRowFormAction(String id, RowModalFormAction<?> rowFormAction)
RowModalFormAction
to the grid for submitting a modal form against an ad-hoc
submission API. Action is created with placement ActionGrid.ActionPlacements.ROW
and type
ResourceGrid.ActionTypes.ROW_FORM
.id
- the id to discriminate this row form action from siblingsrowFormAction
- the action to adddefault G rowFormAction(String id, UnaryOperator<RowModalFormAction<?>> fn)
RowModalFormAction
for the grid for submitting a modal form against an
ad-hoc submission API. Action is created with placement ActionGrid.ActionPlacements.ROW
and type
ResourceGrid.ActionTypes.ROW_FORM
.id
- the id to discriminate this row form action from siblingsfn
- the function for configuring the row form actiondefault RowModalFormAction<?> getRowFormAction(String id)
id
- the id that discriminates this row form action from siblingsdefault Optional<RowModalFormAction<?>> findRowFormAction(String id)
id
- the id that discriminates this row form action from siblingsCopyright © 2021. All rights reserved.