类java.awt.desktop.QuitEvent源码实例Demo

下面列出了怎么用java.awt.desktop.QuitEvent的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: openjdk-jdk9   文件: _AppEventHandler.java
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);
}
 
源代码2 项目: gcs   文件: QuitCommand.java
@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();
}
 
源代码3 项目: netbeans   文件: NbApplicationAdapterJDK9.java
@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();
}
 
源代码4 项目: pcgen   文件: DesktopHandler.java
@Override
public void handleQuitRequestWith(final QuitEvent quitEvent, final QuitResponse quitResponse)
{
	PCGenUIManager.closePCGen();
}
 
源代码5 项目: pcgen   文件: DesktopHandler.java
@Override
public void handleQuitRequestWith(final QuitEvent quitEvent, final QuitResponse quitResponse)
{
	PCGenUIManager.closePCGen();
}
 
 类所在包
 同包方法