Top Description Inners Methods
com.jogamp.nativewindow

public Interface WindowClosingProtocol

Known Direct Subinterfaces
com.jogamp.newt.Window
Known Direct Implementers
com.jogamp.nativewindow.awt.AWTWindowClosingProtocol, com.jogamp.newt.awt.NewtCanvasAWT, com.jogamp.newt.swt.NewtCanvasSWT, com.jogamp.opengl.awt.GLCanvas, com.jogamp.opengl.awt.GLJPanel

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
WindowClosingProtocol.WindowClosingMode

Window closing mode if triggered by toolkit close operation.

Method Summary

Modifier and TypeMethod and Description
public WindowClosingProtocol.WindowClosingMode

Returns:

the current close operation value
getDefaultCloseOperation
()

public WindowClosingProtocol.WindowClosingMode

Returns:

the previous close operation value
setDefaultCloseOperation
(WindowClosingProtocol.WindowClosingMode
the new close operation value
op
)

Method Detail

getDefaultCloseOperationback to summary
public WindowClosingProtocol.WindowClosingMode getDefaultCloseOperation()
Returns:WindowClosingProtocol.WindowClosingMode

the current close operation value

See Also
WindowClosingMode#DISPOSE_ON_CLOSE, WindowClosingMode#DO_NOTHING_ON_CLOSE
setDefaultCloseOperationback to summary
public WindowClosingProtocol.WindowClosingMode setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op)
Parameters
op:WindowClosingProtocol.WindowClosingMode

the new close operation value

Returns:WindowClosingProtocol.WindowClosingMode

the previous close operation value

See Also
WindowClosingMode#DISPOSE_ON_CLOSE, WindowClosingMode#DO_NOTHING_ON_CLOSE
com.jogamp.nativewindow back to summary

public final Enum WindowClosingProtocol.WindowClosingMode

extends Enum<WindowClosingProtocol.WindowClosingMode>
Class Inheritance

Window closing mode if triggered by toolkit close operation.

Field Summary

Modifier and TypeField and Description
public static final WindowClosingProtocol.WindowClosingMode
DISPOSE_ON_CLOSE

Dispose resources on native window close operation.

public static final WindowClosingProtocol.WindowClosingMode
DO_NOTHING_ON_CLOSE

Do nothing on native window close operation.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static WindowClosingProtocol.WindowClosingMode
public static WindowClosingProtocol.WindowClosingMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DISPOSE_ON_CLOSEback to summary
public static final WindowClosingProtocol.WindowClosingMode DISPOSE_ON_CLOSE

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

DO_NOTHING_ON_CLOSEback to summary
public static final WindowClosingProtocol.WindowClosingMode DO_NOTHING_ON_CLOSE

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

Constructor Detail

WindowClosingModeback to summary
private WindowClosingMode()

Method Detail

valueOfback to summary
public static WindowClosingProtocol.WindowClosingMode valueOf(String name)
valuesback to summary
public static WindowClosingProtocol.WindowClosingMode[] values()