Interface SlideOverFormAction<A extends SlideOverFormAction<A>>

All Superinterfaces:
Action<A>, Comparable<A>, Copyable<A>, Serializable
All Known Implementing Classes:
DefaultSlideOverFormAction

public interface SlideOverFormAction<A extends SlideOverFormAction<A>> extends Action<A>
Represents the metadata for the ResidentGridField.ActionTypes.CREATE_VIEW and ResidentGridField.ActionTypes.UPDATE_VIEW actions within an ResidentGridField. This component will use the SlideOverFormAction.FieldNames.COMPONENT_METADATA to define the form fields. This is the ID that defines pre-configured form fields. Typically, in the form of "catalog:product:create". This component can be configured with a field to provide the forms response (SlideOverFormAction.FieldNames.RESPONSE_FIELD_NAME). If not provided, the form response will be returned to the row.
Author:
Jon Fleschler (jfleschler)
  • Method Details

    • componentMetadata

      default A componentMetadata(String componentMetadata)
    • responseFieldName

      default A responseFieldName(String responseFieldName)
      Sets the field name for the response.
      Parameters:
      responseFieldName - the field name holding the response
      Returns:
      this
    • addFormComponents

      default A addFormComponents(Collection<? extends FormComponent<?>> formComponents)
    • addField

      default A addField(String name, Field<?> field)
    • addField

      default A addField(Field<?> field)
    • addField

      default A addField(String name)
    • removeField

      default A removeField(String name)
      Removes a field with the given name.
      Parameters:
      name - the name of the field
      Returns:
      this
    • field

      default A field(String name, UnaryOperator<Field<?>> fn)
      Selects or creates a field with the given name and provides it as an argument to the function for further customization.
      Parameters:
      name - the name of the field
      fn - the customize function
      Returns:
      this
    • findField

      default Optional<Field<?>> findField(String name)
    • getField

      default Field<?> getField(String name)
    • addExternal

      default A addExternal(String id, External<?> external)
    • addExternal

      default A addExternal(External<?> external)
    • removeExternal

      default A removeExternal(String id)
    • external

      default A external(String id, UnaryOperator<External<?>> fn)
    • findExternal

      default Optional<External<?>> findExternal(String id)
    • getExternal

      default External<?> getExternal(String id)
    • addGroup

      default A addGroup(String id, Group<?> group)
    • addGroup

      default A addGroup(Group<?> group)
    • removeGroup

      default A removeGroup(String id)
    • group

      default A group(String id, UnaryOperator<Group<?>> fn)
    • findGroup

      default Optional<Group<?>> findGroup(String id)
    • getGroup

      default Group<?> getGroup(String id)