javax.media.nativewindow
Interface WindowClosingProtocol

All Known Implementing Classes:
AWTWindowClosingProtocol

public interface WindowClosingProtocol

Protocol for handling window closing events.

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.


Field Summary
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.
 
Method Summary
 int getDefaultCloseOperation()
           
 int setDefaultCloseOperation(int op)
           
 

Field Detail

DISPOSE_ON_CLOSE

static final int DISPOSE_ON_CLOSE
Dispose resources on native window close operation.
This is the default behavior in case no underlying toolkit defines otherwise.

See Also:
Constant Field Values

DO_NOTHING_ON_CLOSE

static final int DO_NOTHING_ON_CLOSE
Do nothing on native window close operation.
This is the default behavior within an AWT environment.

See Also:
Constant Field Values
Method Detail

getDefaultCloseOperation

int getDefaultCloseOperation()
Returns:
the current close operation value
See Also:
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE

setDefaultCloseOperation

int setDefaultCloseOperation(int op)
Parameters:
op - the new close operation value
Returns:
the previous close operation value
See Also:
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE


Copyright 2010 JogAmp Community.