Package edu.stanford.bmir.protege.web.shared.notes

Examples of edu.stanford.bmir.protege.web.shared.notes.NoteContent


        NoteDetails last = lastDetails.get();
        NoteHeader header = last.getNoteHeader();
        NoteContent.Builder contentBuilder = NoteContent.builder();
        contentBuilder.setNoteType(NoteType.COMMENT);
        contentBuilder.setBody(editorPanel.getBody());
        NoteContent content = contentBuilder.build();
        return Optional.of(new NoteDetails(header, content));
    }
View Full Code Here


        else {
            entityLabel.setVisible(false);
        }
        timeLabel.setBaseTime(noteHeader.getTimestamp());
        final SafeHtmlBuilder builder = new SafeHtmlBuilder();
        final NoteContent noteContent = event.getNoteDetails().getNoteContent();
        final Optional<String> subject = noteContent.getSubject();
        if (subject.isPresent()) {
            builder.appendHtmlConstant("<span style=\"font-weight: bold; padding-right: 4px;\">" + subject.or("") + ":</span>");
        }
        bodyLabel.setHTML(builder.appendHtmlConstant(noteContent.getBody().or("")).toSafeHtml());
    }
View Full Code Here

    protected ExpandingTextBox bodyField;

    public NewNoteEditor(UserId userId) {
        HTMLPanel rootElement = ourUiBinder.createAndBindUi(this);
        initWidget(rootElement);
        NoteContent noteContent = NoteContent.builder().setNoteType(NoteType.COMMENT).setBody(getBody()).build();
    }
View Full Code Here

        setDirty(false, EventStrategy.DO_NOT_FIRE_EVENTS);
    }

    @Override
    public Optional<NoteContent> getValue() {
        final NoteContent content = NoteContent.builder().setSubject(getSubject()).setBody(getBody()).build();
        return Optional.of(content);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.notes.NoteContent

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.