analyseWriter/src/action/actEvalTabAlignementGaucheOui.java
pablo rodriguez ac0bc585cb MAJ V4.5.0
2024-04-18 13:54:25 +02:00

38 lines
1.4 KiB
Java

package action;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import cXML.node;
import fenetres.CustomInputDialogSimplePoint;
import fenetres.create;
public class actEvalTabAlignementGaucheOui extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Oui, combien de point?" );
putValue( Action.SHORT_DESCRIPTION, "Evaluer l'alignement à gauche de la tabulation" );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaltabalgngauchemini.png")) );
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalTABAlignementAGauche",
"<html><p>Si ce node dans le fichier de l'étudiant ne contient pas le node<br>"
+ "<i>style:type</i> (alignement à gauche),<br>"
+ "alors l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalPiedPagePasActive</p></html>",
new ImageIcon(create.class.getResource("/resources/evaltabalgngauche.png")));
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}