Interface DialogResultCallback<T,​D>

  • Type Parameters:
    T - the type of the result produced by the standard dialog
    D - the type of the data object expected by this callback

    public interface DialogResultCallback<T,​D>

    A callback interface for handling the result of a standard dialog.

    When using one of the supported standard dialogs client code must provide an object implementing this interface. The single callback method defined here is invoked when the dialog was closed successfully. It is passed the result of the dialog to be further processed together with a client-specific context object. The latter can contain additional information required to process the dialog result.

    Since:
    1.4
    • Method Detail

      • onDialogResult

        void onDialogResult​(T result,
                            D data)
        Callback method for processing a standard dialog result. This method is called (in the event dispatch thread) with the dialog-specific result.
        Parameters:
        result - the result from the standard dialog
        data - client-specific data for this callback