Interface ResidentGridField<F extends ResidentGridField<F>>

    • Method Detail

      • addCreateAction

        default F addCreateAction​(CreateModalFormAction<?> createAction)
        Add the ResidentGridField.ActionTypes.CREATE action to the grid. This action allows the user to create new members of the collection using a modal form.
        Parameters:
        createAction - the create action
        Returns:
        this
      • createLabel

        default F createLabel​(String labelKey)
        Shortcut for changing the label of the create grid action.
        Parameters:
        labelKey - the message key of the label
        Returns:
        this
      • addDeleteAction

        default F addDeleteAction​(Action<?> deleteAction)
        Add the ResidentGridField.ActionTypes.DELETE action to the grid. This row action allows the user to delete a member of the collection.
        Parameters:
        deleteAction - the delete action
        Returns:
        this
      • deleteAction

        default F deleteAction​(UnaryOperator<Action<?>> fn)
        Configures the ResidentGridField.ActionTypes.DELETE action for the grid. This row action allows the user to delete a member of the collection.
        Parameters:
        fn - the function configure the delete action
        Returns:
        this
      • deleteLabel

        default F deleteLabel​(String labelKey)
        Shortcut for changing the label of the delete grid action.
        Parameters:
        labelKey - the message key of the label
        Returns:
        this
      • addUpdateAction

        default F addUpdateAction​(ModalFormAction<?> updateAction)
        Add the ResidentGridField.ActionTypes.UPDATE action to the grid. This row action allows the user to update existing members of the collection using a modal form.
        Parameters:
        updateAction - the update action
        Returns:
        this
      • updateLabel

        default F updateLabel​(String labelKey)
        Shortcut for changing the label of the update grid action.
        Parameters:
        labelKey - the message key of the label
        Returns:
        this
      • addGenerateTemplateAction

        default F addGenerateTemplateAction​(GenerateTemplateAction<?> generateAction)
        Add the ResidentGridField.ActionTypes.UPDATE action to the grid. This row action allows the user to update existing members of the collection using a modal form.
        Parameters:
        generateAction - the update action
        Returns:
        this
      • generateTemplateLabel

        default F generateTemplateLabel​(String labelKey)
        Shortcut for changing the label of the update grid action.
        Parameters:
        labelKey - the message key of the label
        Returns:
        this
      • addViewReadOnlyAction

        default F addViewReadOnlyAction​(FormAction<?> viewReadOnlyAction)
        Adds a 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.
        Parameters:
        viewReadOnlyAction - the action to add
        Returns:
        this
      • viewReadOnlyAction

        default F viewReadOnlyAction​(UnaryOperator<FormAction<?>> fn)
        Configure the 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.
        Parameters:
        fn - a function to configure the read-only form
        Returns:
        this
      • viewReadOnlyLabel

        default F viewReadOnlyLabel​(String labelKey)
        Shortcut for setting the label of the read-only action.
        Parameters:
        labelKey - the label or label message key
        Returns:
        this
      • getViewReadOnlyAction

        default FormAction<?> getViewReadOnlyAction()
        Returns:
        the read-only action if it exists
      • findViewReadOnlyAction

        default Optional<FormAction<?>> findViewReadOnlyAction()
        Returns:
        an optional with the read-only action, or empty