Interface WindowStateListener

    • Method Detail

      • windowOpened

        default void windowOpened​(Window window)
        Called when a window has opened.
        Parameters:
        window - The newly opened window.
      • previewWindowClose

        default Vote previewWindowClose​(Window window)
        Called to preview a window close event.
        Parameters:
        window - The window that wants to close.
        Returns:
        The vote from each listener as to whether to allow the close.
      • previewWindowOpen

        default Vote previewWindowOpen​(Window window)
        Called to preview a window open event.
        Parameters:
        window - The window that wants to open.
        Returns:
        The vote from the listener as to whether to allow the open.
      • windowCloseVetoed

        default void windowCloseVetoed​(Window window,
                                       Vote reason)
        Called when a window close event has been vetoed.
        Parameters:
        window - The window that was to close, but now will not.
        reason - The accumulated vote from all the listeners that vetoed this event.
      • windowOpenVetoed

        default void windowOpenVetoed​(Window window,
                                      Vote reason)
        Called when a window open event has been vetoed.
        Parameters:
        window - The window that was to open, but now will not.
        reason - The accumulated vote from all the listeners that vetoed this event.
      • windowClosed

        default void windowClosed​(Window window,
                                  Display display,
                                  Window owner)
        Called when a window has closed.
        Parameters:
        window - The window that is now closed.
        display - The display in which the window was shown.
        owner - The owner of this window (which could be null).