diff --git a/aW.xml b/aW.xml index 1547bdb..9d71c98 100644 --- a/aW.xml +++ b/aW.xml @@ -3,7 +3,7 @@ false gui C:\Users\pabr6\git\analyseWriter\MEPTL\analyseWriter.jar - C:\Users\pabr6\OneDrive\Desktop\analyseWriter.exe + C:\Users\pabr6\git\analyseWriter\MEPTL\analyseWriter.exe Erreur diff --git a/analyseWriter.exe b/analyseWriter.exe new file mode 100644 index 0000000..cb20994 Binary files /dev/null and b/analyseWriter.exe differ diff --git a/analyseWriter.jar b/analyseWriter.jar index b126466..624a880 100644 Binary files a/analyseWriter.jar and b/analyseWriter.jar differ diff --git a/bin/.gitignore b/bin/.gitignore index 67493bc..c7bc614 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1,3 +1,5 @@ /MEPTL/ /app/ /calcul/ +/setting$1.class +/setting.class diff --git a/bin/app/create$1.class b/bin/app/create$1.class index 3cbca94..d9857d2 100644 Binary files a/bin/app/create$1.class and b/bin/app/create$1.class differ diff --git a/bin/app/create$10.class b/bin/app/create$10.class index ede9d34..429bd81 100644 Binary files a/bin/app/create$10.class and b/bin/app/create$10.class differ diff --git a/bin/app/create$11.class b/bin/app/create$11.class index d3a4823..478e818 100644 Binary files a/bin/app/create$11.class and b/bin/app/create$11.class differ diff --git a/bin/app/create$12.class b/bin/app/create$12.class index aa5eff7..e26ea02 100644 Binary files a/bin/app/create$12.class and b/bin/app/create$12.class differ diff --git a/bin/app/create$13.class b/bin/app/create$13.class index c08ffc4..638c643 100644 Binary files a/bin/app/create$13.class and b/bin/app/create$13.class differ diff --git a/bin/app/create$14.class b/bin/app/create$14.class index fd94283..84dd349 100644 Binary files a/bin/app/create$14.class and b/bin/app/create$14.class differ diff --git a/bin/app/create$15.class b/bin/app/create$15.class index e4e2bd9..7e6197b 100644 Binary files a/bin/app/create$15.class and b/bin/app/create$15.class differ diff --git a/bin/app/create$16.class b/bin/app/create$16.class index 17db0be..5ee2aa0 100644 Binary files a/bin/app/create$16.class and b/bin/app/create$16.class differ diff --git a/bin/app/create$17.class b/bin/app/create$17.class index d419807..0d7f497 100644 Binary files a/bin/app/create$17.class and b/bin/app/create$17.class differ diff --git a/bin/app/create$18.class b/bin/app/create$18.class index ec31208..33aec73 100644 Binary files a/bin/app/create$18.class and b/bin/app/create$18.class differ diff --git a/bin/app/create$19.class b/bin/app/create$19.class index ac12f90..3f5a1d2 100644 Binary files a/bin/app/create$19.class and b/bin/app/create$19.class differ diff --git a/bin/app/create$2.class b/bin/app/create$2.class index 96a3edb..c9fe9f5 100644 Binary files a/bin/app/create$2.class and b/bin/app/create$2.class differ diff --git a/bin/app/create$20.class b/bin/app/create$20.class index 83bca4c..5dd970b 100644 Binary files a/bin/app/create$20.class and b/bin/app/create$20.class differ diff --git a/bin/app/create$21.class b/bin/app/create$21.class index bdbaf90..a5429fa 100644 Binary files a/bin/app/create$21.class and b/bin/app/create$21.class differ diff --git a/bin/app/create$22.class b/bin/app/create$22.class index 7c5dc71..6fd3de2 100644 Binary files a/bin/app/create$22.class and b/bin/app/create$22.class differ diff --git a/bin/app/create$23.class b/bin/app/create$23.class index 4dfcac2..82c5467 100644 Binary files a/bin/app/create$23.class and b/bin/app/create$23.class differ diff --git a/bin/app/create$24.class b/bin/app/create$24.class index a8d3857..38b161e 100644 Binary files a/bin/app/create$24.class and b/bin/app/create$24.class differ diff --git a/bin/app/create$25.class b/bin/app/create$25.class index 95d457c..69e529d 100644 Binary files a/bin/app/create$25.class and b/bin/app/create$25.class differ diff --git a/bin/app/create$26.class b/bin/app/create$26.class index c8da538..0e16997 100644 Binary files a/bin/app/create$26.class and b/bin/app/create$26.class differ diff --git a/bin/app/create$27.class b/bin/app/create$27.class index 4fdc131..a150f37 100644 Binary files a/bin/app/create$27.class and b/bin/app/create$27.class differ diff --git a/bin/app/create$28.class b/bin/app/create$28.class index 388823d..106e66b 100644 Binary files a/bin/app/create$28.class and b/bin/app/create$28.class differ diff --git a/bin/app/create$29.class b/bin/app/create$29.class index aca8ea0..215077b 100644 Binary files a/bin/app/create$29.class and b/bin/app/create$29.class differ diff --git a/bin/app/create$3.class b/bin/app/create$3.class index 1163305..365013d 100644 Binary files a/bin/app/create$3.class and b/bin/app/create$3.class differ diff --git a/bin/app/create$30.class b/bin/app/create$30.class index 5ea96f0..c35ec31 100644 Binary files a/bin/app/create$30.class and b/bin/app/create$30.class differ diff --git a/bin/app/create$31.class b/bin/app/create$31.class index 3e18624..0c19f1f 100644 Binary files a/bin/app/create$31.class and b/bin/app/create$31.class differ diff --git a/bin/app/create$32.class b/bin/app/create$32.class index f190d1f..72dfe6a 100644 Binary files a/bin/app/create$32.class and b/bin/app/create$32.class differ diff --git a/bin/app/create$33.class b/bin/app/create$33.class index 46799ed..baecf91 100644 Binary files a/bin/app/create$33.class and b/bin/app/create$33.class differ diff --git a/bin/app/create$34.class b/bin/app/create$34.class index 378b6bf..fb47066 100644 Binary files a/bin/app/create$34.class and b/bin/app/create$34.class differ diff --git a/bin/app/create$35.class b/bin/app/create$35.class index 4da8a32..4147fc8 100644 Binary files a/bin/app/create$35.class and b/bin/app/create$35.class differ diff --git a/bin/app/create$36.class b/bin/app/create$36.class index 7dfd64d..76f5a06 100644 Binary files a/bin/app/create$36.class and b/bin/app/create$36.class differ diff --git a/bin/app/create$37.class b/bin/app/create$37.class index 9c2c75a..9b5f0f7 100644 Binary files a/bin/app/create$37.class and b/bin/app/create$37.class differ diff --git a/bin/app/create$38.class b/bin/app/create$38.class index abb96f0..43ac929 100644 Binary files a/bin/app/create$38.class and b/bin/app/create$38.class differ diff --git a/bin/app/create$39.class b/bin/app/create$39.class index 0de2165..75de58b 100644 Binary files a/bin/app/create$39.class and b/bin/app/create$39.class differ diff --git a/bin/app/create$4.class b/bin/app/create$4.class index 2a0645f..d30bc73 100644 Binary files a/bin/app/create$4.class and b/bin/app/create$4.class differ diff --git a/bin/app/create$40.class b/bin/app/create$40.class index c0ccc8f..9834cf2 100644 Binary files a/bin/app/create$40.class and b/bin/app/create$40.class differ diff --git a/bin/app/create$41.class b/bin/app/create$41.class index 0170525..dba8988 100644 Binary files a/bin/app/create$41.class and b/bin/app/create$41.class differ diff --git a/bin/app/create$42.class b/bin/app/create$42.class index 373889e..3cfbea0 100644 Binary files a/bin/app/create$42.class and b/bin/app/create$42.class differ diff --git a/bin/app/create$43.class b/bin/app/create$43.class index bc242c7..3f93c13 100644 Binary files a/bin/app/create$43.class and b/bin/app/create$43.class differ diff --git a/bin/app/create$44.class b/bin/app/create$44.class index 91a8f20..1a7e304 100644 Binary files a/bin/app/create$44.class and b/bin/app/create$44.class differ diff --git a/bin/app/create$45.class b/bin/app/create$45.class index 02c3ede..d151cfd 100644 Binary files a/bin/app/create$45.class and b/bin/app/create$45.class differ diff --git a/bin/app/create$46.class b/bin/app/create$46.class index 5d0ef14..3fab525 100644 Binary files a/bin/app/create$46.class and b/bin/app/create$46.class differ diff --git a/bin/app/create$47.class b/bin/app/create$47.class index 050ec68..5cdd098 100644 Binary files a/bin/app/create$47.class and b/bin/app/create$47.class differ diff --git a/bin/app/create$48.class b/bin/app/create$48.class index 6e669ca..e1e8f88 100644 Binary files a/bin/app/create$48.class and b/bin/app/create$48.class differ diff --git a/bin/app/create$49.class b/bin/app/create$49.class index 25f3ab2..7286dc3 100644 Binary files a/bin/app/create$49.class and b/bin/app/create$49.class differ diff --git a/bin/app/create$5.class b/bin/app/create$5.class index ccf2470..77cb61b 100644 Binary files a/bin/app/create$5.class and b/bin/app/create$5.class differ diff --git a/bin/app/create$50.class b/bin/app/create$50.class index 1692e94..b8f5e55 100644 Binary files a/bin/app/create$50.class and b/bin/app/create$50.class differ diff --git a/bin/app/create$51.class b/bin/app/create$51.class index 0754ee7..a4079e2 100644 Binary files a/bin/app/create$51.class and b/bin/app/create$51.class differ diff --git a/bin/app/create$52.class b/bin/app/create$52.class index 37dc9b9..66e9be5 100644 Binary files a/bin/app/create$52.class and b/bin/app/create$52.class differ diff --git a/bin/app/create$53.class b/bin/app/create$53.class index 6feb2ca..bcd641d 100644 Binary files a/bin/app/create$53.class and b/bin/app/create$53.class differ diff --git a/bin/app/create$54.class b/bin/app/create$54.class index 8ff6f8f..2842834 100644 Binary files a/bin/app/create$54.class and b/bin/app/create$54.class differ diff --git a/bin/app/create$55.class b/bin/app/create$55.class index 56e9980..f7625bd 100644 Binary files a/bin/app/create$55.class and b/bin/app/create$55.class differ diff --git a/bin/app/create$56.class b/bin/app/create$56.class index 5c2ae1b..4df4661 100644 Binary files a/bin/app/create$56.class and b/bin/app/create$56.class differ diff --git a/bin/app/create$57.class b/bin/app/create$57.class index bed37ea..02e9336 100644 Binary files a/bin/app/create$57.class and b/bin/app/create$57.class differ diff --git a/bin/app/create$58.class b/bin/app/create$58.class index 5b5868a..0e52f0c 100644 Binary files a/bin/app/create$58.class and b/bin/app/create$58.class differ diff --git a/bin/app/create$59.class b/bin/app/create$59.class index f0521cb..7dfb5da 100644 Binary files a/bin/app/create$59.class and b/bin/app/create$59.class differ diff --git a/bin/app/create$6.class b/bin/app/create$6.class index 76229ad..0001228 100644 Binary files a/bin/app/create$6.class and b/bin/app/create$6.class differ diff --git a/bin/app/create$7.class b/bin/app/create$7.class index f1e70ab..ee0e862 100644 Binary files a/bin/app/create$7.class and b/bin/app/create$7.class differ diff --git a/bin/app/create$8.class b/bin/app/create$8.class index 79df58b..482339e 100644 Binary files a/bin/app/create$8.class and b/bin/app/create$8.class differ diff --git a/bin/app/create$9.class b/bin/app/create$9.class index 733baa2..a3123d0 100644 Binary files a/bin/app/create$9.class and b/bin/app/create$9.class differ diff --git a/bin/app/create.class b/bin/app/create.class index 481a286..a64cc99 100644 Binary files a/bin/app/create.class and b/bin/app/create.class differ diff --git a/src/app/create.java b/src/app/create.java index c261688..7b9bde1 100644 --- a/src/app/create.java +++ b/src/app/create.java @@ -87,8 +87,7 @@ public class create extends JFrame { int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth(); int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight(); setLocation(( (screenWidth) - getWidth()) / 2, (screenHeight - getHeight()) / 2); - - //setExtendedState(getExtendedState()|JFrame.MAXIMIZED_BOTH ); + ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") ); setTitle(commandes.Titre + " " + commandes.version + " " + commandes.branch); setIconImage(img.getImage()); @@ -109,8 +108,7 @@ public class create extends JFrame { this.createPopupMenuTree(null); getContentPane().setLayout(new BorderLayout(2, 2)); contentPane.add( toolBar_1, BorderLayout.NORTH ); - - + // The content of the window if(commandes.fichierAnalyseValide) tree = commandes.tree; @@ -576,7 +574,7 @@ public class create extends JFrame { btnNodeFichier.setHideActionText(true); toolBar_1.add(btnNodeFichier); - JButton btnSetting = new JButton(""); + JButton btnSetting = toolBar_1.add( actSetting); btnSetting.setIcon(new ImageIcon(create.class.getResource("/resources/setting.png"))); toolBar_1.add(btnSetting); @@ -751,6 +749,30 @@ public class create extends JFrame { } }; + /** + * + */ + private AbstractAction actSetting = new AbstractAction() { + + private static final long serialVersionUID = 1L; + + { + putValue( Action.NAME, "Settings" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/settingmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/setting.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Modifier les paramètres" ); + + } + + @Override public void actionPerformed( ActionEvent e ) { + if(commandes.sujet.getNomElt().equals("fichier")) { + new setting(); + + } + System.out.println( "ouvre la fenêtre setting" ); + } + }; + /** * */ diff --git a/src/app/setting.java b/src/app/setting.java new file mode 100644 index 0000000..d33873b --- /dev/null +++ b/src/app/setting.java @@ -0,0 +1,227 @@ +package app; +import java.awt.BorderLayout; + +import javax.swing.ImageIcon; +import javax.swing.JFrame; +import javax.swing.JPanel; +import javax.swing.border.EmptyBorder; + +import MEPTL.commandes; +import cXML.node; + +import javax.swing.JTabbedPane; +import javax.swing.JLabel; +import javax.swing.JOptionPane; +import javax.swing.SwingConstants; +import java.awt.Font; +import javax.swing.JComboBox; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JTextField; +import javax.swing.JButton; +import java.awt.event.ActionListener; +import java.awt.event.ActionEvent; + +public class setting extends JFrame { + + /** + * + */ + private static final long serialVersionUID = 1L; + private JPanel contentPane; + private JTextField textFieldNomEtudiant; + private JTextField textFieldPrenomEtudiant; + private JTextField textFieldEmail; + private JTextField textFieldIDEtudiant; + private JComboBox comboBoxSeparateur; + private JComboBox comboBoxEncodage; + private JButton btnValiderCSV; + /** + * Create the frame. + */ + public setting() { + setResizable(false); + setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + setBounds(100, 100, 742, 642); + contentPane = new JPanel(); + contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); + contentPane.setLayout(new BorderLayout(0, 0)); + setContentPane(contentPane); + + JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); + contentPane.add(tabbedPane, BorderLayout.CENTER); + + ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") ); + setIconImage(img.getImage()); + setTitle(commandes.Titre + commandes.version + " - Les paramètres pour l'évaluation"); + setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth(); + int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight(); + setLocation(( (screenWidth) - getWidth()) / 2, (screenHeight - getHeight()) / 2); + + ImageIcon img1 = new ImageIcon(getClass().getResource("/fichierCSV.png") ); + ImageIcon img3 = new ImageIcon(getClass().getResource("/property.png") ); + ImageIcon img4 = new ImageIcon(getClass().getResource("/content.png") ); + ImageIcon img2 = new ImageIcon(getClass().getResource("/structurepage.png") ); + + JPanel panelCSV = new JPanel(); + tabbedPane.addTab("Fichier CSV", img1, panelCSV, null); + panelCSV.setLayout(null); + + node nodCSV = commandes.sujet.retourneFirstEnfantsByName("csv"); + if(nodCSV==null) { + JOptionPane.showMessageDialog(null, "Problème avec le fichier d'analyse.
Le node CSV n'est pas dans le fichier."); + return; + } + + JLabel lblNewLabel = new JLabel("Les paramètres du fichier CSV permettent, d'écrire et d'importer les notes des étudiants dans le CMS moodle.
\r\nCes paramètres seront enregistrés dans le fichier d'analyse."); + lblNewLabel.setVerticalAlignment(SwingConstants.TOP); + lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 14)); + lblNewLabel.setHorizontalAlignment(SwingConstants.LEFT); + lblNewLabel.setBounds(10, 11, 691, 42); + panelCSV.add(lblNewLabel); + + JLabel lblEncodage = new JLabel("Encodage"); + lblEncodage.setFont(new Font("Tahoma", Font.BOLD, 12)); + lblEncodage.setBounds(42, 74, 86, 20); + panelCSV.add(lblEncodage); + + comboBoxEncodage = new JComboBox(); + comboBoxEncodage.setModel(new DefaultComboBoxModel(new String[] {"UTF-8", "US-ASCII", "ISO-8859-1", "UTF-16BE", "UTF-16LE", "UTF-16"})); + comboBoxEncodage.setSelectedItem(nodCSV.getAttributs().get("encoding")); + comboBoxEncodage.setBounds(138, 74, 159, 22); + panelCSV.add(comboBoxEncodage); + + JLabel lblSeparateur = new JLabel("Séparateur"); + lblSeparateur.setFont(new Font("Tahoma", Font.BOLD, 12)); + lblSeparateur.setBounds(370, 74, 86, 20); + panelCSV.add(lblSeparateur); + + comboBoxSeparateur = new JComboBox(); + comboBoxSeparateur.setModel(new DefaultComboBoxModel(new String[] {"point virgule", "virgule", "espace", "tabulation", ""})); + if(nodCSV.getAttributs().get("separator").equals(";")) comboBoxSeparateur.setSelectedItem("point virgule"); + if(nodCSV.getAttributs().get("separator").equals(",")) comboBoxSeparateur.setSelectedItem("virgule"); + if(nodCSV.getAttributs().get("separator").equals(" ")) comboBoxSeparateur.setSelectedItem("espace"); + if(nodCSV.getAttributs().get("separator").equals("\t")) comboBoxSeparateur.setSelectedItem("tabulation"); + comboBoxSeparateur.setBounds(457, 74, 159, 22); + panelCSV.add(comboBoxSeparateur); + + JLabel lblveuillezSaisirLes = new JLabel("Veuillez saisir des quatre noms des champs.
\r\nSi vous exportez le fichier depuis moodle, faite correspondre les noms des 4 champs ci-dessous avec celui de votre fichier."); + lblveuillezSaisirLes.setVerticalAlignment(SwingConstants.TOP); + lblveuillezSaisirLes.setHorizontalAlignment(SwingConstants.LEFT); + lblveuillezSaisirLes.setFont(new Font("Tahoma", Font.PLAIN, 14)); + lblveuillezSaisirLes.setBounds(10, 120, 691, 60); + panelCSV.add(lblveuillezSaisirLes); + + JLabel lblNewLabel_3 = new JLabel("Champ, nom de l'étudiant"); + lblNewLabel_3.setFont(new Font("Tahoma", Font.BOLD, 12)); + lblNewLabel_3.setBounds(42, 210, 186, 20); + panelCSV.add(lblNewLabel_3); + + node nodImportMoodle = nodCSV.retourneFirstEnfantsByName("import_moodle"); + if(nodImportMoodle==null) { + JOptionPane.showMessageDialog(null, "Problème avec le fichier d'analyse.
le node import_moodle n'est pas dans le fichier d'analyse."); + } + + textFieldNomEtudiant = new JTextField(); + textFieldNomEtudiant.setFont(new Font("Tahoma", Font.BOLD, 12)); + textFieldNomEtudiant.setColumns(10); + textFieldNomEtudiant.setBounds(233, 210, 200, 22); + textFieldNomEtudiant.setText(nodImportMoodle.getAttributs().get("name")); + panelCSV.add(textFieldNomEtudiant); + + + JLabel lblNewLabel_3_1 = new JLabel("Champ, prénom de l'étudiant"); + lblNewLabel_3_1.setFont(new Font("Tahoma", Font.BOLD, 12)); + lblNewLabel_3_1.setBounds(42, 260, 186, 20); + panelCSV.add(lblNewLabel_3_1); + + textFieldPrenomEtudiant = new JTextField(); + textFieldPrenomEtudiant.setFont(new Font("Tahoma", Font.BOLD, 12)); + textFieldPrenomEtudiant.setColumns(10); + textFieldPrenomEtudiant.setBounds(233, 260, 200, 22); + textFieldPrenomEtudiant.setText(nodImportMoodle.getAttributs().get("firstname")); + panelCSV.add(textFieldPrenomEtudiant); + + JLabel lblNewLabel_3_1_1 = new JLabel("Champ, email de l'étudiant"); + lblNewLabel_3_1_1.setFont(new Font("Tahoma", Font.BOLD, 12)); + lblNewLabel_3_1_1.setBounds(42, 310, 186, 20); + panelCSV.add(lblNewLabel_3_1_1); + + textFieldEmail = new JTextField(); + textFieldEmail.setFont(new Font("Tahoma", Font.BOLD, 12)); + textFieldEmail.setColumns(10); + textFieldEmail.setBounds(233, 310, 200, 22); + textFieldEmail.setText(nodImportMoodle.getAttributs().get("email")); + panelCSV.add(textFieldEmail); + + JLabel lblNewLabel_3_1_1_1 = new JLabel("Champ,numéro de l'étudiant"); + lblNewLabel_3_1_1_1.setFont(new Font("Tahoma", Font.BOLD, 12)); + lblNewLabel_3_1_1_1.setBounds(42, 360, 186, 20); + panelCSV.add(lblNewLabel_3_1_1_1); + + textFieldIDEtudiant = new JTextField(); + textFieldIDEtudiant.setFont(new Font("Tahoma", Font.BOLD, 12)); + textFieldIDEtudiant.setColumns(10); + textFieldIDEtudiant.setBounds(233, 360, 200, 22); + textFieldIDEtudiant.setText(nodImportMoodle.getAttributs().get("id")); + panelCSV.add(textFieldIDEtudiant); + + btnValiderCSV = new JButton("Valider"); + btnValiderCSV.setFont(new Font("Tahoma", Font.BOLD, 12)); + btnValiderCSV.setBounds(535, 430, 145, 37); + panelCSV.add(btnValiderCSV); + + JPanel panelZip = new JPanel(); + panelZip.setLayout(null); + tabbedPane.addTab("ZIP", img1, panelZip, null); + + JPanel panelPlagiarism = new JPanel(); + panelPlagiarism.setLayout(null); + tabbedPane.addTab("Triche", img2, panelPlagiarism, null); + + JPanel panelTextSimilarity = new JPanel(); + panelTextSimilarity.setLayout(null); + tabbedPane.addTab("Texte similitude", img4, panelTextSimilarity, null); + + JPanel panelColor = new JPanel(); + panelColor.setLayout(null); + tabbedPane.addTab("Couleur", img4, panelColor, null); + + JPanel panelTraduction = new JPanel(); + panelTraduction.setLayout(null); + tabbedPane.addTab("Traduction", img4, panelTraduction, null); + + + ListenerAction(); + this.setVisible(true); + } + + + + private void ListenerAction() { + + btnValiderCSV.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + node nodCSV = commandes.sujet.retourneFirstEnfantsByName("csv"); + nodCSV.getAttributs().put("encoding", comboBoxEncodage.getSelectedItem().toString()); + if(comboBoxSeparateur.getSelectedItem().equals("point virgule")) nodCSV.getAttributs().put("separator", ";"); + if(comboBoxSeparateur.getSelectedItem().equals("virgule")) nodCSV.getAttributs().put("separator", ","); + if(comboBoxSeparateur.getSelectedItem().equals("espace")) nodCSV.getAttributs().put("separator", " "); + if(comboBoxSeparateur.getSelectedItem().equals("tabulation")) nodCSV.getAttributs().put("separator", "\t"); + + node nodImport= commandes.sujet.retourneFirstEnfantsByName("import_moodle"); + + nodImport.getAttributs().put("name", textFieldNomEtudiant.getText()); + nodImport.getAttributs().put("firstname", textFieldPrenomEtudiant.getText()); + nodImport.getAttributs().put("email", textFieldEmail.getText()); + nodImport.getAttributs().put("id", textFieldIDEtudiant.getText()); + + JOptionPane.showMessageDialog(null, "Les informations ont bien été renseignées.
" + + "N'oubliez pas d'enregistrer votre fichier d'analyse."); + } + }); + + } + + +}