Interface SheetStateListener

    • Method Detail

      • previewSheetClose

        default Vote previewSheetClose​(Sheet sheet,
                                       boolean result)
        Called to preview a sheet close event.
        Parameters:
        sheet - The source of the event.
        result - The proposed result of the close.
        Returns:
        What this listener wants to decide about this proposed close.
      • sheetCloseVetoed

        default void sheetCloseVetoed​(Sheet sheet,
                                      Vote reason)
        Called when a sheet close event has been vetoed.
        Parameters:
        sheet - The close event source.
        reason - The accumulated vote that resulted in the veto.
      • sheetClosed

        default void sheetClosed​(Sheet sheet)
        Called when the sheet has closed.
        Specified by:
        sheetClosed in interface SheetCloseListener
        Parameters:
        sheet - The sheet that has been closed.