java.awt.desktop.QuitEvent Java Examples
The following examples show how to use
java.awt.desktop.QuitEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: _AppEventHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void performUsing(final QuitHandler handler, final _NativeEvent event) { if (_AppMiscHandlers.isSuddenTerminationEnbaled()) { performDefaultAction(event); return; } final MacQuitResponse response = obtainQuitResponse(); // obtains the "current" quit response handler.handleQuitRequestWith(new QuitEvent(), response); }
Example #2
Source File: QuitCommand.java From gcs with Mozilla Public License 2.0 | 5 votes |
@Override public void handleQuitRequestWith(QuitEvent event, QuitResponse response) { if (!UIUtilities.inModalState()) { mAllowQuitIfNoSignificantWindowsOpen = false; if (closeFrames(true)) { if (closeFrames(false)) { saveState(); response.performQuit(); return; } } mAllowQuitIfNoSignificantWindowsOpen = true; } response.cancelQuit(); }
Example #3
Source File: NbApplicationAdapterJDK9.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void handleQuitRequestWith(QuitEvent e, QuitResponse response) { handleQuit(); //need to do this otherwise the user will never be able to quit again response.cancelQuit(); }
Example #4
Source File: DesktopHandler.java From pcgen with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void handleQuitRequestWith(final QuitEvent quitEvent, final QuitResponse quitResponse) { PCGenUIManager.closePCGen(); }
Example #5
Source File: DesktopHandler.java From pcgen with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void handleQuitRequestWith(final QuitEvent quitEvent, final QuitResponse quitResponse) { PCGenUIManager.closePCGen(); }