MAJ (V4.3.1 Modification du commentaire dans le feedback)

This commit is contained in:
pablo rodriguez 2022-12-01 14:40:55 +01:00
parent 3eaed5f3bb
commit fc08de2008
24 changed files with 34 additions and 8 deletions

Binary file not shown.

Binary file not shown.

1
bin/.gitignore vendored
View File

@ -1,2 +1 @@
/fenetres/
/MEPTL/

Binary file not shown.

View File

@ -251,8 +251,6 @@ public class feedbacks {
if(!commandes.noDetail) {
fichier.append(HTML.getHTMLmenu(nodana.retourneFirstEnfantsByName("menu").getNodes()));
}
//Les erreurs
node errors = nodana.retourneFirstEnfantsByName("erreurs");

View File

@ -23,6 +23,10 @@ import java.awt.event.ActionEvent;
import net.miginfocom.swing.MigLayout;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.DropMode;
import javax.swing.SwingConstants;
import javax.swing.JEditorPane;
import javax.swing.JTextArea;
public final class proprieteFichierAnalyse extends JFrame {
@ -37,6 +41,7 @@ public final class proprieteFichierAnalyse extends JFrame {
private JTextField textFieldNoteFrom;
private JTextField textFieldProgression;
private JTextField textFieldDateCreation;
private JTextArea textAreaCommentaire;
private JComboBox<String> comboBoxPresenceMetaSujet;
private JComboBox<String> comboBoxBaremeABC;
private JComboBox<String> comboBoxhistoriquePresent;
@ -65,6 +70,8 @@ public final class proprieteFichierAnalyse extends JFrame {
private JButton btnVoirBaremeABC;
private JButton btnVoirBaremeNumeric;
private static proprieteFichierAnalyse instance;
private JLabel lblNewLabel_13;
/**
@ -72,7 +79,7 @@ public final class proprieteFichierAnalyse extends JFrame {
*/
public proprieteFichierAnalyse() {
setIconImage(Toolkit.getDefaultToolkit().getImage(proprieteFichierAnalyse.class.getResource("/resources/evalwriter.ico")));
setBounds(0, 0, 630, 639);
setBounds(0, 0, 630, 700);
setResizable(false);
setTitle("Propriété du fichier d'analyse");
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
@ -83,7 +90,7 @@ public final class proprieteFichierAnalyse extends JFrame {
contentPane = new JPanel();
contentPane.setBorder(null);
setContentPane(contentPane);
contentPane.setLayout(new MigLayout("", "[260px][260px][10,grow 20]", "[18px][18px][18px][30px][18px][18px][18px][30px][45px][18px][18px][18px][][][][18px:24px:48px,grow]"));
contentPane.setLayout(new MigLayout("", "[260px][260px,grow][10,grow 20]", "[18px][18px][18px][30px][18px][18px][18px][30px][45px][18px][18px][18px][18px][18px][72px,grow][18px:24px:48px,grow]"));
JLabel lblNewLabel = new JLabel("Titre de l'exercice");
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 12));
@ -414,8 +421,23 @@ public final class proprieteFichierAnalyse extends JFrame {
btnVoirBaremeNumeric.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png")));
contentPane.add(btnVoirBaremeNumeric, "cell 2 5");
JButton btnNewButton = new JButton("Valide");
btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 12));
lblNewLabel_13 = new JLabel("Commentaire sur l'exercice");
lblNewLabel_13.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPane.add(lblNewLabel_13, "cell 0 14,alignx left");
textAreaCommentaire = new JTextArea();
textAreaCommentaire.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPane.add(textAreaCommentaire, "cell 1 14,grow");
if(!commandes.sujet.getContenu().isEmpty()) {
if(commandes.sujet.getContenu().get(0)!=null) {
String textCommentaire = commandes.sujet.getContenu().get(0).replace("-NewLine-", "\n");
textAreaCommentaire.setText(textCommentaire);
}
}
JButton btnNewButton = new JButton("Valider");
btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 14));
contentPane.add(btnNewButton, "cell 1 15,grow");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
@ -436,7 +458,14 @@ public final class proprieteFichierAnalyse extends JFrame {
commandes.sujet.getAttributs().put("controle_Initial_Creator", comboBoxcontrole_Initial_Creator.getSelectedItem().toString() );
commandes.sujet.getAttributs().put("link_help", textFieldlink_help.getText() );
commandes.sujet.getAttributs().put("link_sujet", textFieldlink_sujet.getText() );
String textCommentaire = textAreaCommentaire.getText().replace("\n", "-NewLine-");
if(!commandes.sujet.getContenu().isEmpty()) {
commandes.sujet.getContenu().remove(0);
commandes.sujet.getContenu().add(0, textCommentaire);
}
meptl.chargementParametresFichierAnalyse();
fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();