Interface DialogStateListener

    • Method Detail

      • previewDialogClose

        default Vote previewDialogClose​(Dialog dialog,
                                        boolean result)
        Called to preview a dialog close event.
        Parameters:
        dialog - The dialog that is requesting to close.
        result - The result flag (true means "OK", while false roughly means "Cancel").
        Returns:
        The consensus vote as to whether or not to allow the close to occur.
      • dialogCloseVetoed

        default void dialogCloseVetoed​(Dialog dialog,
                                       Vote reason)
        Called when a dialog close event has been vetoed.
        Parameters:
        dialog - The dialog that is not going to close because of this veto.
        reason - The vote result that indicates the veto.
      • dialogClosed

        default void dialogClosed​(Dialog dialog,
                                  boolean modal)
        Description copied from interface: DialogCloseListener
        Called when a dialog has closed.
        Specified by:
        dialogClosed in interface DialogCloseListener
        Parameters:
        dialog - The dialog that has been closed.
        modal - Whether this was a modal dialog or not.