public interface WindowClosingStrategy
Definition of an interface used to control whether a window can be closed.
A
object can be passed an implementation of
this interface. Whenever the user wants to close the window (by clicking the
close button or using a similar mechanism) the Window
canClose()
method will be invoked to check if closing the window is allowed. If this
method returns false the close operation will be aborted.
A typical use case for this interface is displaying a confirmation message if there is unsaved data: Only if the user confirms that changed data can be thrown away, the window will be closed.
boolean canClose(Window window)
window
- a reference to the associated windowCopyright © 2013 The JGUIraffe Team. All Rights Reserved.