Package com.jogamp.nativewindow
Interface WindowClosingProtocol
-
- All Known Implementing Classes:
AWTWindowClosingProtocol
public interface WindowClosingProtocolProtocol 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_CLOSEwithin an AWT environment.
If none of the above determines the operation, this protocol default behaviorDISPOSE_ON_CLOSEshall be used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWindowClosingProtocol.WindowClosingModeWindow closing mode if triggered by toolkit close operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WindowClosingProtocol.WindowClosingModegetDefaultCloseOperation()WindowClosingProtocol.WindowClosingModesetDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op)
-
-
-
Method Detail
-
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
-
-