![JAR search and dependency download from the Maven repository](/logo.png)
io.ultreia.gc.ui.actions.QuitAction Maven / Gradle / Ivy
package io.ultreia.gc.ui.actions;
/*-
* #%L
* GC toolkit :: API
* %%
* Copyright (C) 2017 Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* .
* #L%
*/
import io.ultreia.gc.ui.AfterLoginUI;
import java.awt.event.ActionEvent;
import javax.swing.KeyStroke;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Created by tchemit on 17/04/17.
*
* @author Tony Chemit - [email protected]
*/
public class QuitAction extends UIActionSupport {
/** Logger. */
private static final Log log = LogFactory.getLog(QuitAction.class);
public QuitAction(UI ui) {
super(ui, KeyStroke.getKeyStroke("alt pressed Q"));
putValue(MNEMONIC_KEY, (int) 'Q');
}
@Override
public void actionPerformed(ActionEvent e) {
log.info("Quit");
ui.quit();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy