|
|
@ -39,11 +39,12 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
private JPanel contentPane;
|
|
|
|
private JPanel contentPane;
|
|
|
|
private JTextField txtNomOption_1;
|
|
|
|
private JTextField txtNomOption_1;
|
|
|
|
private JTextField txtNomOption_5;
|
|
|
|
private JTextField txtNomOption_5;
|
|
|
|
private JTextField txtNomOption_2;
|
|
|
|
|
|
|
|
private JLabel lblOption_3;
|
|
|
|
|
|
|
|
private JTextField txtNomOption_3;
|
|
|
|
private JTextField txtNomOption_3;
|
|
|
|
private JLabel lblAtelierPreRentreeSalle;
|
|
|
|
|
|
|
|
private JTextField txtNomOption_4;
|
|
|
|
private JTextField txtNomOption_4;
|
|
|
|
|
|
|
|
private JTextField txtNomOption_2;
|
|
|
|
|
|
|
|
private JTextField txtNomOption_6;
|
|
|
|
|
|
|
|
private JTextField txtNomOption_7;
|
|
|
|
|
|
|
|
private JLabel lblAtelierPreRentreeSalle;
|
|
|
|
private JButton btnEnregistrer;
|
|
|
|
private JButton btnEnregistrer;
|
|
|
|
private JLabel lblImage;
|
|
|
|
private JLabel lblImage;
|
|
|
|
private JLabel lblAuteurVersion;
|
|
|
|
private JLabel lblAuteurVersion;
|
|
|
@ -52,7 +53,12 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
private JCheckBox chckbxOption_3 = new JCheckBox("activé");
|
|
|
|
private JCheckBox chckbxOption_3 = new JCheckBox("activé");
|
|
|
|
private JCheckBox chckbxOption_4 = new JCheckBox("activé");
|
|
|
|
private JCheckBox chckbxOption_4 = new JCheckBox("activé");
|
|
|
|
private JCheckBox chckbxOption_5 = new JCheckBox("activé");
|
|
|
|
private JCheckBox chckbxOption_5 = new JCheckBox("activé");
|
|
|
|
|
|
|
|
private JCheckBox chckbxOption_6 = new JCheckBox("activé");
|
|
|
|
|
|
|
|
private JCheckBox chckbxOption_7 = new JCheckBox("activé");
|
|
|
|
private JComboBox<String> cFormations;
|
|
|
|
private JComboBox<String> cFormations;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Lancement de l'affichage de la fenêtre.
|
|
|
|
* Lancement de l'affichage de la fenêtre.
|
|
|
@ -95,7 +101,6 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
|
|
|
|
|
|
|
|
setResizable(false);
|
|
|
|
setResizable(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
|
|
|
|
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
|
|
|
|
getContentPane().setLayout(null);
|
|
|
|
getContentPane().setLayout(null);
|
|
|
|
|
|
|
|
|
|
|
@ -144,6 +149,20 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
txtNomOption_5.setBounds(842, 471, 244, 34);
|
|
|
|
txtNomOption_5.setBounds(842, 471, 244, 34);
|
|
|
|
contentPane.add(txtNomOption_5);
|
|
|
|
contentPane.add(txtNomOption_5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
txtNomOption_6 = new JTextField();
|
|
|
|
|
|
|
|
txtNomOption_6.setText((String) null);
|
|
|
|
|
|
|
|
txtNomOption_6.setFont(new Font("Tahoma", Font.BOLD, 14));
|
|
|
|
|
|
|
|
txtNomOption_6.setColumns(32);
|
|
|
|
|
|
|
|
txtNomOption_6.setBounds(842, 522, 244, 34);
|
|
|
|
|
|
|
|
contentPane.add(txtNomOption_6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
txtNomOption_7 = new JTextField();
|
|
|
|
|
|
|
|
txtNomOption_7.setText((String) null);
|
|
|
|
|
|
|
|
txtNomOption_7.setFont(new Font("Tahoma", Font.BOLD, 14));
|
|
|
|
|
|
|
|
txtNomOption_7.setColumns(32);
|
|
|
|
|
|
|
|
txtNomOption_7.setBounds(842, 581, 244, 34);
|
|
|
|
|
|
|
|
contentPane.add(txtNomOption_7);
|
|
|
|
|
|
|
|
|
|
|
|
JLabel lblNewLabel = new JLabel("<html><p>Les colonnes ci-dessous peuvent être renommées ou désactivées.</p><p>Si vous choisissez de les renommer, les changements seront appliqués sur la formation sélectionnée. En revanche, si vous les désactivez, elles ne s'afficheront pas dans le gestionnaire, mais resteront présentes dans les classeurs exportés au format Ms Excel.</p><br><p>Il est important de noter que renommer ou désactiver ces colonnes n'entraînera pas la perte des données qui y sont enregistrées.</p></html>");
|
|
|
|
JLabel lblNewLabel = new JLabel("<html><p>Les colonnes ci-dessous peuvent être renommées ou désactivées.</p><p>Si vous choisissez de les renommer, les changements seront appliqués sur la formation sélectionnée. En revanche, si vous les désactivez, elles ne s'afficheront pas dans le gestionnaire, mais resteront présentes dans les classeurs exportés au format Ms Excel.</p><br><p>Il est important de noter que renommer ou désactiver ces colonnes n'entraînera pas la perte des données qui y sont enregistrées.</p></html>");
|
|
|
|
lblNewLabel.setForeground(Color.BLUE);
|
|
|
|
lblNewLabel.setForeground(Color.BLUE);
|
|
|
|
lblNewLabel.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
lblNewLabel.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
@ -165,7 +184,7 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
txtNomOption_2.setText(nFormation.getAttributes("nomColonne_Option_2"));
|
|
|
|
txtNomOption_2.setText(nFormation.getAttributes("nomColonne_Option_2"));
|
|
|
|
contentPane.add(txtNomOption_2);
|
|
|
|
contentPane.add(txtNomOption_2);
|
|
|
|
|
|
|
|
|
|
|
|
lblOption_3 = new JLabel("<html>Le nom de la colonne : <br>\r\nOption_3</html>");
|
|
|
|
JLabel lblOption_3 = new JLabel("<html>Le nom de la colonne : <br>\r\nOption_3</html>");
|
|
|
|
lblOption_3.setHorizontalAlignment(SwingConstants.LEFT);
|
|
|
|
lblOption_3.setHorizontalAlignment(SwingConstants.LEFT);
|
|
|
|
lblOption_3.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
lblOption_3.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
lblOption_3.setBounds(10, 581, 220, 34);
|
|
|
|
lblOption_3.setBounds(10, 581, 220, 34);
|
|
|
@ -231,9 +250,22 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
nomColonnesFeuille.put("Enabled_Colonne_Option_5", "false");
|
|
|
|
nomColonnesFeuille.put("Enabled_Colonne_Option_5", "false");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nomColonnesFeuille.put("nomColonne_Option_6", txtNomOption_6.getText());
|
|
|
|
|
|
|
|
if(chckbxOption_6.isSelected()) {
|
|
|
|
|
|
|
|
nomColonnesFeuille.put("Enabled_Colonne_Option_6", "true");
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
nomColonnesFeuille.put("Enabled_Colonne_Option_6", "false");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nomColonnesFeuille.put("nomColonne_Option_7", txtNomOption_7.getText());
|
|
|
|
|
|
|
|
if(chckbxOption_7.isSelected()) {
|
|
|
|
|
|
|
|
nomColonnesFeuille.put("Enabled_Colonne_Option_7", "true");
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
nomColonnesFeuille.put("Enabled_Colonne_Option_7", "false");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!NomDeColonneInscriptionTable.colitionNomDesColonnes(nomColonnesFeuille, cFormations.getSelectedItem().toString())) {
|
|
|
|
if(!NomDeColonneInscriptionTable.colitionNomDesColonnes(nomColonnesFeuille, cFormations.getSelectedItem().toString())) {
|
|
|
|
NomDeColonneInscriptionTable.modifierLesNoms(nomColonnesFeuille, cFormations.getSelectedItem().toString());
|
|
|
|
NomDeColonneInscriptionTable.modifierLesNoms(nomColonnesFeuille, cFormations.getSelectedItem().toString());
|
|
|
|
dispose();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -295,6 +327,11 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
txtNomOption_5.setText(commandes.nomColonne_default_Option_5);
|
|
|
|
txtNomOption_5.setText(commandes.nomColonne_default_Option_5);
|
|
|
|
chckbxOption_5.setSelected(commandes.enabled_default_Colonne_Option_5);
|
|
|
|
chckbxOption_5.setSelected(commandes.enabled_default_Colonne_Option_5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
txtNomOption_6.setText(commandes.nomColonne_default_Option_6);
|
|
|
|
|
|
|
|
chckbxOption_6.setSelected(commandes.enabled_default_Colonne_Option_6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
txtNomOption_7.setText(commandes.nomColonne_default_Option_7);
|
|
|
|
|
|
|
|
chckbxOption_7.setSelected(commandes.enabled_default_Colonne_Option_7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -306,11 +343,6 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
chckbxOption_1.setBounds(501, 467, 82, 23);
|
|
|
|
chckbxOption_1.setBounds(501, 467, 82, 23);
|
|
|
|
chckbxOption_1.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_1")));
|
|
|
|
chckbxOption_1.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_1")));
|
|
|
|
contentPane.add(chckbxOption_1);
|
|
|
|
contentPane.add(chckbxOption_1);
|
|
|
|
|
|
|
|
|
|
|
|
chckbxOption_5.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
|
|
|
|
chckbxOption_5.setBounds(1092, 469, 82, 23);
|
|
|
|
|
|
|
|
chckbxOption_5.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_5")));
|
|
|
|
|
|
|
|
contentPane.add(chckbxOption_5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chckbxOption_2.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
chckbxOption_2.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
chckbxOption_2.setBounds(501, 520, 82, 23);
|
|
|
|
chckbxOption_2.setBounds(501, 520, 82, 23);
|
|
|
@ -326,14 +358,42 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
chckbxOption_4.setBounds(501, 632, 82, 23);
|
|
|
|
chckbxOption_4.setBounds(501, 632, 82, 23);
|
|
|
|
chckbxOption_4.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_4")));
|
|
|
|
chckbxOption_4.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_4")));
|
|
|
|
contentPane.add(chckbxOption_4);
|
|
|
|
contentPane.add(chckbxOption_4);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chckbxOption_5.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
|
|
|
|
chckbxOption_5.setBounds(1092, 469, 82, 23);
|
|
|
|
|
|
|
|
chckbxOption_5.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_5")));
|
|
|
|
|
|
|
|
contentPane.add(chckbxOption_5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chckbxOption_6.setSelected(false);
|
|
|
|
|
|
|
|
chckbxOption_6.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
|
|
|
|
chckbxOption_6.setBounds(1092, 522, 82, 23);
|
|
|
|
|
|
|
|
chckbxOption_6.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_6")));
|
|
|
|
|
|
|
|
contentPane.add(chckbxOption_6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chckbxOption_7 = new JCheckBox("activé");
|
|
|
|
|
|
|
|
chckbxOption_7.setSelected(false);
|
|
|
|
|
|
|
|
chckbxOption_7.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
|
|
|
|
chckbxOption_7.setBounds(1092, 580, 82, 23);
|
|
|
|
|
|
|
|
chckbxOption_7.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_7")));
|
|
|
|
|
|
|
|
contentPane.add(chckbxOption_7);
|
|
|
|
|
|
|
|
|
|
|
|
JLabel lblNewLabel_1 = new JLabel("<html>Formations</html>");
|
|
|
|
JLabel lblNewLabel_1 = new JLabel("<html>Formations</html>");
|
|
|
|
lblNewLabel_1.setForeground(Color.RED);
|
|
|
|
lblNewLabel_1.setForeground(Color.RED);
|
|
|
|
lblNewLabel_1.setFont(new Font("Arial", Font.BOLD, 18));
|
|
|
|
lblNewLabel_1.setFont(new Font("Arial", Font.BOLD, 18));
|
|
|
|
lblNewLabel_1.setBounds(10, 416, 220, 34);
|
|
|
|
lblNewLabel_1.setBounds(10, 416, 220, 34);
|
|
|
|
contentPane.add(lblNewLabel_1);
|
|
|
|
contentPane.add(lblNewLabel_1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JLabel lblOption_6 = new JLabel("<html>Renommer la colonne :<br>Option_6</html>");
|
|
|
|
|
|
|
|
lblOption_6.setHorizontalAlignment(SwingConstants.LEFT);
|
|
|
|
|
|
|
|
lblOption_6.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
|
|
|
|
lblOption_6.setBounds(612, 522, 220, 34);
|
|
|
|
|
|
|
|
contentPane.add(lblOption_6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JLabel lblOption_7 = new JLabel("<html>Renommer la colonne :<br>Option_7</html>");
|
|
|
|
|
|
|
|
lblOption_7.setHorizontalAlignment(SwingConstants.LEFT);
|
|
|
|
|
|
|
|
lblOption_7.setFont(new Font("Arial", Font.BOLD, 14));
|
|
|
|
|
|
|
|
lblOption_7.setBounds(612, 581, 220, 34);
|
|
|
|
|
|
|
|
contentPane.add(lblOption_7);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -345,12 +405,15 @@ public class Window_renommerColonne extends JFrame {
|
|
|
|
chckbxOption_3.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_3")));
|
|
|
|
chckbxOption_3.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_3")));
|
|
|
|
chckbxOption_4.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_4")));
|
|
|
|
chckbxOption_4.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_4")));
|
|
|
|
chckbxOption_5.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_5")));
|
|
|
|
chckbxOption_5.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_5")));
|
|
|
|
|
|
|
|
chckbxOption_6.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_6")));
|
|
|
|
|
|
|
|
chckbxOption_7.setSelected(Boolean.valueOf(nFormation.getAttributes("Enabled_Colonne_Option_7")));
|
|
|
|
|
|
|
|
|
|
|
|
txtNomOption_1.setText(nFormation.getAttributes("nomColonne_Option_1"));
|
|
|
|
txtNomOption_1.setText(nFormation.getAttributes("nomColonne_Option_1"));
|
|
|
|
txtNomOption_2.setText(nFormation.getAttributes("nomColonne_Option_2"));
|
|
|
|
txtNomOption_2.setText(nFormation.getAttributes("nomColonne_Option_2"));
|
|
|
|
txtNomOption_3.setText(nFormation.getAttributes("nomColonne_Option_3"));
|
|
|
|
txtNomOption_3.setText(nFormation.getAttributes("nomColonne_Option_3"));
|
|
|
|
txtNomOption_4.setText(nFormation.getAttributes("nomColonne_Option_4"));
|
|
|
|
txtNomOption_4.setText(nFormation.getAttributes("nomColonne_Option_4"));
|
|
|
|
txtNomOption_5.setText(nFormation.getAttributes("nomColonne_Option_5"));
|
|
|
|
txtNomOption_5.setText(nFormation.getAttributes("nomColonne_Option_5"));
|
|
|
|
|
|
|
|
txtNomOption_6.setText(nFormation.getAttributes("nomColonne_Option_6"));
|
|
|
|
|
|
|
|
txtNomOption_7.setText(nFormation.getAttributes("nomColonne_Option_7"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|