Package org.apache.pivot.wtk
Class WindowStateListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener
WindowStateListener.Adapter, WindowStateListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Vote
previewWindowClose(Window window)
Deprecated.Called to preview a window close event.Vote
previewWindowOpen(Window window)
Deprecated.Called to preview a window open event.void
windowClosed(Window window, Display display, Window owner)
Deprecated.Called when a window has closed.void
windowCloseVetoed(Window window, Vote reason)
Deprecated.Called when a window close event has been vetoed.void
windowOpened(Window window)
Deprecated.Called when a window has opened.void
windowOpenVetoed(Window window, Vote reason)
Deprecated.Called when a window open event has been vetoed.
-
-
-
Method Detail
-
windowOpened
public void windowOpened(Window window)
Deprecated.Description copied from interface:WindowStateListener
Called when a window has opened.- Specified by:
windowOpened
in interfaceWindowStateListener
- Parameters:
window
- The newly opened window.
-
previewWindowClose
public Vote previewWindowClose(Window window)
Deprecated.Description copied from interface:WindowStateListener
Called to preview a window close event.- Specified by:
previewWindowClose
in interfaceWindowStateListener
- 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 interfaceWindowStateListener
- 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 interfaceWindowStateListener
- 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 interfaceWindowStateListener
- 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 interfaceWindowStateListener
- 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 benull
).
-
-