Package Modele

Examples of Modele.Eleve


        private void bt_enregistrer_eleveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_enregistrer_eleveActionPerformed

                int selectedrow = t_eleves.getSelectedRow();
                if (t_eleves.getSelectedRow() != -1) {
                        Eleve e = ((Promotion) l_promos.getSelectedValue()).getEleves().get(t_eleves.getSelectedRow());
                        e.setNom(tb_nom_eleve.getText());
                        e.setPrenom(tb_prenom_eleve.getText());
                        e.setEmail(tb_email_eleve.getText());
                        e.setNum(tb_num_eleve.getText());
                        e.save();
                        // refresh la liste d eleve
                        belves.unbind();
                        belves.bind();
                        // mais le focus sur l eleve
                        if (selectedrow < t_eleves.getRowCount()) {
View Full Code Here


                int selectedrow = t_eleves.getSelectedRow();
                if (t_eleves.getSelectedRow() != -1) {

                        ArrayList<Eleve> asup = new ArrayList<Eleve>();
                        for (int i : t_eleves.getSelectedRows()) {
                                Eleve e = ((Promotion) l_promos.getSelectedValue()).getEleves().get(i);
                                //place les etudiants a supprimer dans une liste
                                asup.add(e);
                        }
                        for (Eleve eleve : asup) {
                                eleve.getPromotion().deleteStudent(eleve);
View Full Code Here

        }//GEN-LAST:event_bt_delete_eleveActionPerformed

        private void bt_ajouter_eleveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_ajouter_eleveActionPerformed

                // ajoute un eleve vide modifiable aprés avoir cliquer sur ajouter grace a l'edition
                Eleve e = new Eleve("", "", "", "", (Promotion) l_promos.getSelectedValue());
                // ajoute uniquement a la liste pas encore sauvegarder dans le xml
                ((Promotion) l_promos.getSelectedValue()).getEleves().addLast(e);

                belves.unbind();
                belves.bind();
View Full Code Here

TOP

Related Classes of Modele.Eleve

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.