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 behaviorDISPOSE_ON_CLOSE
shall be used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WindowClosingProtocol.WindowClosingMode
Window closing mode if triggered by toolkit close operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WindowClosingProtocol.WindowClosingMode
getDefaultCloseOperation()
WindowClosingProtocol.WindowClosingMode
setDefaultCloseOperation(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
-
-