javax.media.nativewindow
Interface WindowClosingProtocol
- All Known Subinterfaces:
- Window
- All Known Implementing Classes:
- AWTWindowClosingProtocol, GLCanvas, GLJPanel, GLWindow, NewtCanvasAWT, NewtCanvasSWT
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.
getDefaultCloseOperation
WindowClosingProtocol.WindowClosingMode getDefaultCloseOperation()
- Returns:
- the current close operation value
- See Also:
WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE
,
WindowClosingProtocol.WindowClosingMode.DO_NOTHING_ON_CLOSE
setDefaultCloseOperation
WindowClosingProtocol.WindowClosingMode setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op)
- Parameters:
op
- the new close operation value
- Returns:
- the previous close operation value
- See Also:
WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE
,
WindowClosingProtocol.WindowClosingMode.DO_NOTHING_ON_CLOSE
Copyright 2010 JogAmp Community.