Package mindnotes.shared.model

Examples of mindnotes.shared.model.EmbeddedObject


      }
    }
  }

  public void insertYouTubeVideo(String id) {
    EmbeddedObject video = new EmbeddedObject("youtube", id);
    addEmbeddedObject(_selection.getCurrentNode(), video);

  }
View Full Code Here


    doUndoableAction(_dragDropAction);
    _dragDropAction = null;
  }

  public void insertImage(String url) {
    EmbeddedObject image = new EmbeddedObject("image", url);
    addEmbeddedObject(_selection.getCurrentNode(), image);

  }
View Full Code Here

    addEmbeddedObject(_selection.getCurrentNode(), image);

  }

  public void insertMap() {
    EmbeddedObject map = new EmbeddedObject("map", "");
    addEmbeddedObject(_selection.getCurrentNode(), map);
  }
View Full Code Here

    EmbeddedObject map = new EmbeddedObject("map", "");
    addEmbeddedObject(_selection.getCurrentNode(), map);
  }

  public void insertRichText() {
    EmbeddedObject text = new EmbeddedObject("richtext", "type text here");
    addEmbeddedObject(_selection.getCurrentNode(), text);
  }
View Full Code Here

            .createNode());
      }

      for (int i = 0; i < _objects.size(); i++) {
        JSONObject jo = _objects.get(i).isObject();
        EmbeddedObject eo = new EmbeddedObject();
        try {
          eo.setType(jo.get("type").isString().stringValue());
        } catch (NullPointerException e) {
          eo.setType(null);
        }
        try {
          eo.setData(jo.get("data").isString().stringValue());
        } catch (NullPointerException e) {
          eo.setData(null);
        }
        nb.addObject(eo);
      }
    }
View Full Code Here

    m.setTitle("a title");
    Node n1 = node(m.getRootNode(), "n1", true, NodeLocation.LEFT);
    Node n2 = node(n1, "n2", false, NodeLocation.RIGHT);
    node(n1, "n3", false, NodeLocation.RIGHT);
    node(n2, "n3", false, NodeLocation.RIGHT);
    n2.addObject(new EmbeddedObject("yt", "dfcsdf"));
    node(m.getRootNode(), "sadas", true, NodeLocation.LEFT);
    node(m.getRootNode(), null, true, NodeLocation.LEFT);
    node(m.getRootNode(), "dsdsd", true, null);
    node(n2, "dsdsd", true, null);
    roundtrip(m);
View Full Code Here

TOP

Related Classes of mindnotes.shared.model.EmbeddedObject

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.