javax.media.nativewindow
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 | Field and Description |
---|---|
static int |
DISPOSE_ON_CLOSE
Dispose resources on native window close operation.
This is the default behavior in case no underlying toolkit defines otherwise. |
static int |
DO_NOTHING_ON_CLOSE
Do nothing on native window close operation.
This is the default behavior within an AWT environment. |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultCloseOperation() |
int |
setDefaultCloseOperation(int op) |
static final int DISPOSE_ON_CLOSE
static final int DO_NOTHING_ON_CLOSE
int getDefaultCloseOperation()
DISPOSE_ON_CLOSE
,
DO_NOTHING_ON_CLOSE
int setDefaultCloseOperation(int op)
op
- the new close operation valueDISPOSE_ON_CLOSE
,
DO_NOTHING_ON_CLOSE
Copyright 2010 JogAmp Community.