analyseWriter/src/action/actEvalPiedPageActiveNon.java

32 lines
1000 B
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.create;
public class actEvalPiedPageActiveNon extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Supprime pied page active" );
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de la présence d'attribut du node." );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPageActivefalsemini.png")) );
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalPiedPageActive");
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}