Examples of Note


Examples of Modele.Note

                fileChooser.setApproveButtonMnemonic('o');
                fileChooser.setFileFilter(new FileNameExtensionFilter("Fichier note", "note"));
                if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                        try {
                                // On recupere le fichier et on l'ouvre dans un nouveau tab
                                note = new Note(fileChooser.getSelectedFile().getAbsolutePath());
                                if (note.isIntegre()) {
                                        if (note.getSignePar().getLibelle() == null) {
                                                String message = "Expéditeur inconnu, voulez vous l'enregistrer en tant qu'expéditeur de confiance et afficher votre note ?";
                                                String result = (String) JOptionPane.showInputDialog(this, message, null, JOptionPane.WARNING_MESSAGE,
                                                        null, null, Certificat.getSender(Certificat.hexToX509Cert(note.getSignePar().getCertificat())));
View Full Code Here

Examples of com.centraview.note.Note

      if (newIndividualID != 0)
      {
        if (addNote)
        {
          NoteHome noteHome = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note noteRemote = (Note)noteHome.create();
          noteRemote.setDataSource(dataSource);

          NoteVO noteVO = new NoteVO();

          // the "title" of the note will be the first 22 characters of the content,
          // plus "...", unless the content is less than 22 characters, in which case
          // it will be the same as the content...
          String title = "";
          if (notes.length() > 22)
          {
            title = notes.substring(0, 22) + "...";
          }else{
            title = notes;
          }
         
          noteVO.setTitle(title);
          noteVO.setDetail(notes);
          noteVO.setPriority(NoteVO.NP_MEDIUM);
          noteVO.setCreatedBy(individualID);
          noteVO.setOwner(individualID);
          noteVO.setRelateEntity(finalEntityID);
          noteVO.setRelateIndividual(newIndividualID);
         
          try
          {
            noteRemote.addNote(individualID, noteVO);
          }catch(NoteException ne){
            // TODO: clean up this NoteException handling
            System.out.println("[Exception][ContactAdd] Note Exception caught!: " + ne);
            ne.printStackTrace();
          }
View Full Code Here

Examples of com.centraview.note.Note

      {
        // ok, here's the tricky part. We need to take this content,
        // parse it into individual notes, and figure out which to
        // change/delete/create. This could prove troublesome...
        NoteHome noteHome = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
        Note noteRemote = (Note)noteHome.create();
        noteRemote.setDataSource(dataSource);

        NoteVO noteVO = new NoteVO();

        // the "title" of the note will be the first 22 characters of the content,
        // plus "...", unless the content is less than 22 characters, in which case
        // it will be the same as the content...
        String noteTitle = "";
        if (noteContent.length() > 22)
        {
          noteTitle = noteContent.substring(0, 22) + "...";
        }else{
          noteTitle = noteContent;
        }
       
        noteVO.setTitle(noteTitle);
        noteVO.setDetail(noteContent);
        noteVO.setPriority(NoteVO.NP_MEDIUM);
        noteVO.setCreatedBy(individualID);
        noteVO.setOwner(individualID);
        noteVO.setRelateEntity(individualVO.getEntityID());
        noteVO.setRelateIndividual(contactID);
       
        try
        {
          noteRemote.addNote(individualID, noteVO);
        }catch(NoteException ne){
          // TODO: clean up this NoteException handling
          System.out.println("[Exception][ContactAdd] Note Exception caught!: " + ne);
          //ne.printStackTrace();
        }
View Full Code Here

Examples of com.centraview.note.Note

        hm.put("sortType", new Character('D'));
        hm.put("notetype", noteType);

        try {
          NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note remote = (Note)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getNoteList(individualID, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getNoteList: " + e.toString());
          // e.printStackTrace();
        }
        returnDL.setNoteType(noteType);
View Full Code Here

Examples of com.centraview.note.Note

        hm.put("sortType", new Character('A'));
        hm.put("notetype", noteType);

        try {
          NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note remote = (Note)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getEntityNoteList(entityId, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getEntityNoteList: " + e.toString());
          // e.printStackTrace();
        }
View Full Code Here

Examples of com.centraview.note.Note

    hm.put("sortType", new Character(DLparam.getSortType()));
    hm.put("notetype", noteType);

    try {
      NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
      Note remote = (Note)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getNoteList(individualID, hm);
    } catch (Exception e) {
      System.out.println("[Exception] ListGenerator.getNoteList: " + e.toString());
      // e.printStackTrace();
    }
View Full Code Here

Examples of com.centraview.note.Note

    hm.put("sortType", new Character(DLparam.getSortType()));
    hm.put("notetype", noteType);

    try {
      NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
      Note remote = (Note)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getEntityNoteList(entityId, hm);
    } catch (Exception e) {
      System.out.println("[Exception] ListGenerator.getEntityNoteList: " + e.toString());
      // e.printStackTrace();
    }
View Full Code Here

Examples of com.eaglegenomics.simlims.core.Note

                Date date = df.parse(j.getString("receivedDate"));
                news.setReceivedDate(date);
              }

              if (!j.getString("note").equals("")) {
                Note note = new Note();
                note.setOwner(sp.getOwner());
                note.setText(j.getString("note"));
                note.setInternalOnly(true);

                if (j.has("receivedDate") && !"".equals(j.getString("receivedDate"))) {
                  Date date = df.parse(j.getString("receivedDate"));
                  note.setCreationDate(date);
                }
                else {
                  note.setCreationDate(new Date());
                }

                news.setNotes(Arrays.asList(note));
              }
View Full Code Here

Examples of com.evernote.edam.type.Note

                return null;
            }

            // Evernote オブジェクトの取得
            NoteStoreClient noteStoreClient = getNoteStoreClient(userModel);
            Note note = new Note();
            note.setTitle(getNoteTitle(activityModel));

            // ノートBody
            String nBody = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
            nBody += "<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">";
            nBody += "<en-note>";

            nBody += "<div style=\"font-family: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif; color: rgb(88, 89, 87); font-size: 14px; line-height: 1.5; overflow-y: hidden; background: rgb(230, 230, 230);margin: -20px;\">";
            nBody += "<div style=\"height: 40px;\">&nbsp;</div>";
            nBody += "<div style=\"max-width: 600px;padding: 25px 0px 0px 0px;background-color: #fff;margin: 0 auto;box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);\">";

            nBody += Utils.removeLinkTags(getNoteContents(activityModel));
            nBody += getNoteAttachmentsContents(activityModel);

            // 下部メニュー
            nBody += "<div style=\"background: #f5f5f5;min-height: 16px;padding: 1px 30px;text-align: center;border-top: 1px solid #ebebeb;margin-top: 20px;\">";
            nBody += "<p style=\"color: #747474;line-height: 1.5em;\">";
            nBody += "<a href=\"" + activityModel.getUrlString() + "\" style=\"text-decoration: none;color: #747474;\" target=\"_blank\">Google+で見る</a>";
            nBody += "</p>";
            nBody += "</div>";

            nBody += "</div>";
            nBody += "<div style=\"height: 40px;\">&nbsp;</div>";
            nBody += "</div>";
            nBody += "</en-note>";

            note.setContent(nBody);
            if(userModel.getEvernoteNotebookId() != null) {
                note.setNotebookGuid(userModel.getEvernoteNotebookId());
            }

            noteStoreClient.createNote(note);

View Full Code Here

Examples of com.example.domain.Note

    }

    @Override
    public void removeNote(Long noteId)
    {
        final Note note = entityManager.find(Note.class, noteId);
        if (null == note) {
            throw new NoResultException("No note with id " + noteId + " found");
        }
        entityManager.remove(note);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.