analyseWriter/src/action/actRechercheIndexfalse.java

31 lines
903 B
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;
import fenetres.create;
2022-06-19 21:01:30 +02:00
public class actRechercheIndexfalse extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Ne recherche par l'index du node : false" );
putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par l'index le node dans le fichier de l'étudiant." );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
2022-06-19 21:01:30 +02:00
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().put("recherche_index", "false");
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}