Interface AgreementAcceptanceCallback

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 AgreementAcceptanceCallback
Functional interface representing a callback that is invoked with the result of an agreement acceptance request. The callback receives the AgreementStatus indicating the outcome and, when applicable, a map of the user's choices for the agreement components.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onResult(AgreementStatus agreementStatus, Map<String,String> userChoices)
    Callback method called with the result of agreement acceptance.
  • Method Details

    • onResult

      void onResult(AgreementStatus agreementStatus, Map<String,String> userChoices)
      Callback method called with the result of agreement acceptance. It will be called from the Swing EDT thread.
      Parameters:
      agreementStatus - The status of the agreement acceptance
      userChoices - A map containing the user's choices for the agreement components. The keys of the map are the component ids and the values are the selected option ids for those components (for radio button group components). The component ids and option ids correspond to the ones defined in the AgreementInfo object used to request showing the agreement dialog. This map is non-null only if the agreementStatus is JUST_ACCEPTED, otherwise it is null (e.g. if agreementStatus is ALREADY_ACCEPTED, EXPIRED or DECLINED, userChoices will be null).