Interface FieldMarkerPopoverContentProvider

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FieldMarkerPopoverContentProvider extends Serializable
Creates the extra content a FormAIController shows in the popover that opens when the AI field marker badge is clicked, between the explanation message and the revert control. Register it through FormAIController.setFieldMarkerPopoverContentProvider(FieldMarkerPopoverContentProvider).
Since:
25.3
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the content component for one field the controller is marking.
  • Method Details

    • createContent

      Component createContent(FieldValueChangeEvent change)
      Creates the content component for one field the controller is marking. Invoked once per field whose value changed during a successful AI turn, with the same event the field-value-change listeners receive.
      Parameters:
      change - the change the mark annotates, never null
      Returns:
      the component to show in the marker's popover, or null for no extra content