Package org.freeplane.plugin.script.proxy.Proxy

Examples of org.freeplane.plugin.script.proxy.Proxy.Node.createChild()


    child.setFolded(false);
    assertFalse("node should be unfolded again", child.isFolded());
    grandchild.setFolded(true);
    assertFalse("a node without children is not foldable", grandchild.isFolded());
    // test undo of folding - give the new node a child first to make it foldable
    grandchild.createChild("grandgrandchild");
    grandchild.setFolded(true);
    assertTrue("node should be folded now", grandchild.isFolded());
    c.undo();
    assertFalse("folding should be undone now", grandchild.isFolded());
  }
View Full Code Here


  public void test_NodeRO_isLeaf() {
    map = c.newMap();
    final Node root = map.getRoot();
    assertTrue("even root is a leaf, if single", root.isLeaf());
    root.createChild("child");
    assertFalse("root is never a leaf, even without children", root.isLeaf());
    assertTrue("child without children should be leaf", firstChild(root).isLeaf());
    firstChild(root).createChild("grandchild");
    assertFalse("child with children is not a leaf", firstChild(root).isLeaf());
  }
View Full Code Here

  //  }
  //
  public void test_Node_setFolded_boolean_folded() {
    createTestMap();
    final Node child = firstChild();
    child.createChild("grandchild");
    child.setFolded(true);
    assertTrue("node should be folded now", child.isFolded());
    child.setFolded(false);
    assertFalse("node should be unfolded again", child.isFolded());
  }
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.