Package com.jogamp.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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Window closing mode if triggered by toolkit close operation. -
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getDefaultCloseOperation
WindowClosingProtocol.WindowClosingMode getDefaultCloseOperation()- Returns:
- the current close operation value
- See Also:
-
setDefaultCloseOperation
WindowClosingProtocol.WindowClosingMode setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op) - Parameters:
op
- the new close operation value- Returns:
- the previous close operation value
- See Also:
-