public interface WindowClosingProtocol
The implementation shall obey either the user value set by this interface,
an underlying toolkit set user value or it's default, eg. DO_NOTHING_ON_CLOSE within an AWT environment.
If none of the above determines the operation,
this protocol default behavior DISPOSE_ON_CLOSE shall be used.
| Modifier and Type | Interface and Description |
|---|---|
static class |
WindowClosingProtocol.WindowClosingMode
Window closing mode if triggered by toolkit close operation.
|
| Modifier and Type | Method and Description |
|---|---|
WindowClosingProtocol.WindowClosingMode |
getDefaultCloseOperation() |
WindowClosingProtocol.WindowClosingMode |
setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op) |
WindowClosingProtocol.WindowClosingMode getDefaultCloseOperation()
WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE,
WindowClosingProtocol.WindowClosingMode.DO_NOTHING_ON_CLOSEWindowClosingProtocol.WindowClosingMode setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op)
op - the new close operation valueWindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE,
WindowClosingProtocol.WindowClosingMode.DO_NOTHING_ON_CLOSECopyright 2010 JogAmp Community.