Class WindowStateListener.Adapter

  • All Implemented Interfaces:
    WindowStateListener
    Enclosing interface:
    WindowStateListener

    @Deprecated
    public static class WindowStateListener.Adapter
    extends java.lang.Object
    implements WindowStateListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Window state listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • previewWindowClose

        public Vote previewWindowClose​(Window window)
        Deprecated.
        Description copied from interface: WindowStateListener
        Called to preview a window close event.
        Specified by:
        previewWindowClose in interface WindowStateListener
        Parameters:
        window - The window that wants to close.
        Returns:
        The vote from each listener as to whether to allow the close.
      • previewWindowOpen

        public Vote previewWindowOpen​(Window window)
        Deprecated.
        Description copied from interface: WindowStateListener
        Called to preview a window open event.
        Specified by:
        previewWindowOpen in interface WindowStateListener
        Parameters:
        window - The window that wants to open.
        Returns:
        The vote from the listener as to whether to allow the open.
      • windowCloseVetoed

        public void windowCloseVetoed​(Window window,
                                      Vote reason)
        Deprecated.
        Description copied from interface: WindowStateListener
        Called when a window close event has been vetoed.
        Specified by:
        windowCloseVetoed in interface WindowStateListener
        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

        public void windowOpenVetoed​(Window window,
                                     Vote reason)
        Deprecated.
        Description copied from interface: WindowStateListener
        Called when a window open event has been vetoed.
        Specified by:
        windowOpenVetoed in interface WindowStateListener
        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

        public void windowClosed​(Window window,
                                 Display display,
                                 Window owner)
        Deprecated.
        Description copied from interface: WindowStateListener
        Called when a window has closed.
        Specified by:
        windowClosed in interface WindowStateListener
        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).