39 lines
1.4 KiB
Java
39 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 actEvalFormatageDirect extends AbstractAction{
|
|
{
|
|
putValue( Action.NAME, "Oui, combien de point?" );
|
|
putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence ou l'absence du formatage direct." );
|
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalformatagedirectmini.png")) );
|
|
}
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Override
|
|
public void actionPerformed(ActionEvent e) {
|
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
|
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalFormatageDirect",
|
|
"<html><p>Si le node dans le fichier de l'étudiant par comparaison avec <br>"
|
|
+ "ce node, contient une surcharge des formats de paragraphe <br>"
|
|
+ "et/ou de caractères <i>(style:name=Px)</i>, ou ne contient pas <br>"
|
|
+ "une surcharge alors l'étudiant aura les points ci-dessous.</p><br>"
|
|
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
|
|
+ "d'évaluation evalFormatageDirect</p></html>",
|
|
new ImageIcon(create.class.getResource("/resources/evalformatagedirect.png")));
|
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
|
}
|
|
|
|
}
|