Package Modele

Examples of Modele.FeuilleNote


                // realize the binding
                tb.bind();
        }

        public FeuilleNoteView(Promotion p) {
                feuilleModel = new FeuilleNote(p);
                init();
        }
View Full Code Here


                feuilleModel = new FeuilleNote(p);
                init();
        }

        public FeuilleNoteView(String path) {
                feuilleModel = new FeuilleNote(path);
                init();
        }
View Full Code Here

    }//GEN-LAST:event_exitMenuItemActionPerformed

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


                FeuilleNote f = ((FeuilleNoteView) getTabPane().getSelectedComponent()).getFeuilleModel();

                // test si le feuille est presente sur le disque dur
                if (f.getPath() != null) {
                        f.save(f.getPath());
                } else {
                        saveAsMenuItemActionPerformed(evt);
                }
        }//GEN-LAST:event_saveMenuItemActionPerformed
View Full Code Here

                        JOptionPane.showMessageDialog(this, "Veuillez configurer le logiciel avant !", "Error", JOptionPane.ERROR_MESSAGE);
                        return;
                }

                // TODO : gerer la bar de status individuelement pour chaque tab
                final FeuilleNote f = ((FeuilleNoteView) getTabPane().getSelectedComponent()).getFeuilleModel();



                f.setMessage(JOptionPane.showInputDialog(this, "Entrez un message à ajouter exemple : Note du TP1"));
                if (f.getMessage() != null) {
                        Thread t = new Thread() {
                                @Override
                                public void run() {
                                        canQuit++;
                                        jLabel1.setText(" Envoi en cours ...");
                                        try {
                                                f.sendNotes();
                                        } catch (MessagingException ex) {
                                                JOptionPane.showMessageDialog(null, "Erreur lors de l'envoie du mail. Vérifié vos paramètres SMTP", "Error email", JOptionPane.ERROR_MESSAGE);
                                                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                                        }
                                        jLabel1.setText("");
View Full Code Here

                 // verifie que les parametre son bien renseigné
                if (!checkIfKeyParamAreSet()) {
                        JOptionPane.showMessageDialog(this, "Veuillez configurer le logiciel avant !", "Error", JOptionPane.ERROR_MESSAGE);
                        return;
                }
                final FeuilleNote f = ((FeuilleNoteView) getTabPane().getSelectedComponent()).getFeuilleModel();
                f.setMessage(JOptionPane.showInputDialog(this, "Entrez un message à ajouter exemple : Note du TP1"));
                if (f.getMessage() != null) {
                        final JFileChooser fc = new JFileChooser();
                        fc.setSelectedFile(new File("archive.zip"));
                        if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
                                Thread t = new Thread() {
                                        @Override
                                        public void run() {
                                                canQuit++;
                                                jLabel1.setText(" Creation de l'archive en cours ...");

                                                f.createZip(fc.getSelectedFile().getAbsolutePath());

                                                jLabel1.setText("");
                                                canQuit--;
                                        }
                                };
View Full Code Here

TOP

Related Classes of Modele.FeuilleNote

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.