Examples of Note


Examples of org.apache.sling.extensions.gwt.sample.service.Note

                    Node node = nodes.nextNode();
                    // for every child node, that has the correct properties set, create a POJO and add it to the list
                    if (node.hasProperty(PN_NOTETITLE) && node.hasProperty(PN_NOTETEXT)) {

                        final Note note = new Note();
                        note.setTitle(node.getProperty(PN_NOTETITLE).getString());
                        note.setText(node.getProperty(PN_NOTETEXT).getString());
                        // set the node's path, so that the GWT client app can use it as the parameter for the
                        // deleteNote(String path) method.
                        note.setPath(node.getPath());

                        notes.add(note);
                        log.info("getNotes: found note {}, adding to list...", node.getPath());
                    }
                }
View Full Code Here

Examples of org.bukkit.Note

        }

        // Notes
        if (modify instanceof NoteBlock) {
          String[] split = query.getString("metadata").split("\n");
          Note note = new Note(Integer.parseInt(split[1]), Tone.valueOf(split[0]), Boolean.parseBoolean(split[2]));
          ((NoteBlock) modify).setNote(note);
          modify.update(true, false);
        }

        // Records
View Full Code Here

Examples of org.bukkit.Note

            YamlConfiguration config = new YamlConfiguration();
            // Serialize to config, then store config in database
            config.set("items", items);
            dataStmt.setString(6, config.saveToString());
          } else if (state instanceof NoteBlock) {
            Note note = ((NoteBlock) block.getState()).getNote();
            dataStmt.setString(6, note.getTone().toString() + '\n' + note.getOctave() + '\n' + note.isSharped());
          } else if (state instanceof Jukebox) {
            dataStmt.setString(6, ((Jukebox) block.getState()).getPlaying().toString());
          } else if (state instanceof Skull) {
            dataStmt.setString(6, String.format("%s\n%s\n%s",
                ((Skull) block.getState()).hasOwner() ? ((Skull) block.getState()).getOwner() : "",
View Full Code Here

Examples of org.codehaus.enunciate.samples.genealogy.cite.Note

      Event event = new Event();
      event.setDate(new DateTime(1L));
      person.setEvents(Arrays.asList(event));

      HashMap<String, Note> notes = new HashMap<String, Note>();
      Note note1 = new Note();
      note1.setText("text1");
      notes.put("contributor1", note1);
      Note note2 = new Note();
      note2.setText("text2");
      notes.put("contributor2", note2);
      person.setNotes(notes);
    }

    return persons;
View Full Code Here

Examples of org.eclipse.jgit.notes.Note

          } catch (IncorrectObjectTypeException e) {
            result.notACommit(commitToBan, e.getMessage());
            continue;
          }

          final Note note = ourNoteMap.getNote(commitToBan);
          if (note != null) {
            result.commitAlreadyBanned(commitToBan);
            continue;
          }
View Full Code Here

Examples of org.gedcom4j.model.Note

     *            the notes
     */
    private void checkJohn(List<Note> notes) {
        assertNotNull(notes);
        assertEquals(1, notes.size());
        Note note = notes.get(0);
        assertNotNull(note);
        assertNotNull(note.lines);
        assertEquals(1, note.lines.size());
        assertEquals("Lorem ipsum dolor sit amet, consectetur adipisicing elit, "
                + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
View Full Code Here

Examples of org.mifosplatform.portfolio.note.domain.Note

        if (!changes.isEmpty()) {
            saveAndFlushLoanWithDataIntegrityViolationChecks(loan);

            final String noteText = command.stringValueOfParameterNamed("note");
            if (StringUtils.isNotBlank(noteText)) {
                final Note note = Note.loanNote(loan, noteText);
                this.noteRepository.save(note);
            }

            if (changedTransactionDetail != null) {
                for (final Map.Entry<Long, LoanTransaction> mapEntry : changedTransactionDetail.getNewTransactionMappings().entrySet()) {
View Full Code Here

Examples of org.nxplanner.domain.Note

        Logger.getLogger(EditNoteAction.class).debug("Populating...");

        super.populateObject(request, object, form);

        NoteEditorForm noteForm = (NoteEditorForm)form;
        Note note = (Note)object;

        FormFile formFile = noteForm.getFormFile();
        if (formFile != null) {
            String filename = formFile.getFileName();
            if (StringUtils.isNotEmpty(filename)) {
                String contentType = formFile.getContentType();
                InputStream input = formFile.getInputStream();
                int fileSize = formFile.getFileSize();
                int projectId = request.getParameter("projectId") != null ?
                        Integer.parseInt(request.getParameter("projectId")) : 0;
                Directory directory = fileSystem.getDirectory("/attachments/project/"+projectId);
                File file = fileSystem.createFile(directory, filename, contentType, fileSize, input);
                note.setFile(file);

                Logger.getLogger(EditNoteAction.class).debug("Saving note: filename="
                        + filename + ", fileSize=" + fileSize + ", contentType=" + contentType);

            }
View Full Code Here

Examples of org.olat.note.Note

          if (log.isDebug()) log.info("Migrate " + allIdentityNotes.size() + " Notes for Identity: " + identity.getName());
          if (!allIdentityNotes.isEmpty()){
            usercounter++;
            for (Iterator<Note> iterator2 = allIdentityNotes.iterator(); iterator2.hasNext();) {
              try{
                Note note = iterator2.next();
                String parsedText = note.getNoteText();
                parsedText = migrateStringSavely(parsedText);
                note.setNoteText(parsedText);
                noteMgr.saveNote(note);
                counter ++;
                DBFactory.getInstance().intermediateCommit();
              } catch (Exception e) {
                log.error("Error during Migration: "+e, e);
View Full Code Here

Examples of org.pdfclown.documents.interaction.annotations.Note

      );
    composer.setFont(font,12);

    // Note.
    composer.showText("Note annotation:", new Point(35,35));
    Note note = new Note(
      page,
      new Point(50, 50),
      "Note annotation"
      );
    note.setIconType(Note.IconTypeEnum.Help);
    note.setModificationDate(new Date());
    note.setOpen(true);

    // Callout.
    composer.showText("Callout note annotation:", new Point(35,85));
    CalloutNote calloutNote = new CalloutNote(
      page,
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.