2023-02-05 17:46:02 +01:00
|
|
|
package action;
|
2022-06-19 21:01:30 +02:00
|
|
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
|
|
|
import javax.swing.AbstractAction;
|
|
|
|
import javax.swing.Action;
|
2022-12-12 11:49:47 +01:00
|
|
|
import javax.swing.ImageIcon;
|
2022-06-19 21:01:30 +02:00
|
|
|
|
|
|
|
import cXML.node;
|
2024-04-17 22:15:19 +02:00
|
|
|
import fenetres.CustomInputDialogSimplePoint;
|
2022-12-12 11:49:47 +01:00
|
|
|
import fenetres.create;
|
2022-06-19 21:01:30 +02:00
|
|
|
|
|
|
|
public class actEvalNameNodeOui extends AbstractAction{
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
{
|
2024-04-18 21:17:35 +02:00
|
|
|
putValue( Action.NAME, "Evaluer la présence de ce node" );
|
2022-12-12 19:25:53 +01:00
|
|
|
putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence de ce node." );
|
2024-04-17 22:15:19 +02:00
|
|
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalnodemini.png")) );
|
2022-06-19 21:01:30 +02:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
2024-04-17 22:15:19 +02:00
|
|
|
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalNameNode",
|
|
|
|
"<html><p>Si ce node est présent dans le fichier de l'étudiant alors<br>"
|
|
|
|
+ "l'étudiant obtiendra les points ci-dessous.</p><br>"
|
|
|
|
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
|
2024-04-18 21:17:35 +02:00
|
|
|
+ "d'évaluation evalNameNode.</p></html>",
|
2024-04-17 22:15:19 +02:00
|
|
|
new ImageIcon(create.class.getResource("/resources/evalnode.png")));
|
2022-06-19 21:01:30 +02:00
|
|
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|