analyseWriter/src/action/actEvalNameNodeOui.java

37 lines
1.2 KiB
Java
Raw Normal View History

package action;
2022-06-19 21:01:30 +02:00
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
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;
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" );
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);
}
}