public class InvariantWindowClosingStrategy extends Object implements WindowClosingStrategy
A very simple implementation of the WindowClosingStrategy
interface.
The canClose(Window)
method of this implementation returns always
true. So an instance of this class can be used as a default window
closing strategy that is used when no specific strategy was specified.
Modifier and Type | Field and Description |
---|---|
static InvariantWindowClosingStrategy |
DEFAULT_INSTANCE
Stores the default instance of this class.
|
Constructor and Description |
---|
InvariantWindowClosingStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canClose(Window window)
Checks if the window can be closed.
|
public static final InvariantWindowClosingStrategy DEFAULT_INSTANCE
public boolean canClose(Window window)
canClose
in interface WindowClosingStrategy
window
- the affected windowCopyright © 2016 The JGUIraffe Team. All rights reserved.