Examples of NoteModel


Examples of org.freeplane.features.note.NoteModel

      }

      private void setText(final String text) {
        final boolean enabled = !(text == null || text.equals(""));
        if (enabled) {
          final NoteModel note = NoteModel.createNote(node);
          note.setHtml(text);
          node.addExtension(note);
        }
        else {
          if (null != node.getExtension(NoteModel.class)) {
            node.removeExtension(NoteModel.class);
View Full Code Here

Examples of org.freeplane.features.note.NoteModel

    ZoomableLabel note = (ZoomableLabel) nodeView.getContent(NodeView.NOTE_VIEWER_POSITION);
    String oldText = note != null ? note.getText() : null;
    String newText  = null;
    if (nodeView.getMap().showNotes()) {
      final NodeModel model = nodeView.getModel();
      final NoteModel extension = NoteModel.getNote(model);
            if (extension != null)
                newText = extension.getHtml();
    }
    if (oldText == null && newText == null) {
      return;
    }
    final ZoomableLabel view;
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.