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

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

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