analyseWriter/src/action/actEvaluer.java

36 lines
1.0 KiB
Java
Raw Normal View History

package action;
2022-06-19 21:01:30 +02:00
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
2023-04-04 14:29:25 +02:00
import fenetres.baseDonneesEvaluations;
2022-06-19 21:01:30 +02:00
import fenetres.create;
import fenetres.evaluate;
public class actEvaluer extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Evaluer" );
2022-12-08 21:35:00 +01:00
putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/resources/evaluate.png") ) );
2022-06-19 21:01:30 +02:00
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E );
putValue( Action.SHORT_DESCRIPTION, "Evaluer un node (CTRL+E)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed(ActionEvent e) {
evaluate.getInstance();
2023-04-04 14:29:25 +02:00
if(!baseDonneesEvaluations.isDispose) baseDonneesEvaluations.ferme();
create.fermeCreate();
2022-06-19 21:01:30 +02:00
}
}