@Test public void nodeRemove() { SvgNode node1 = newNode(); SvgNode node2 = newNode(); node1.children().add(node2); node1.children().remove(node2); assertNull(node2.parent().get()); assertTrue(node1.children().isEmpty()); }
public ObservableList<SvgNode> children() { if (myChildren == null) { myChildren = new SvgChildList(this); } return myChildren; }
SvgNode extends SimpleComposite<SvgNode, SvgNode> { public ObservableList<SvgNode> children() { if (myChildren == null) { myChildren = new SvgChildList(this); } return myChildren; } }
SvgNode extends SimpleComposite<SvgNode, SvgNode> { public ObservableList<SvgNode> children() { if (myChildren == null) { myChildren = new SvgChildList(this); } return myChildren; }  }
SvgNode extends SimpleComposite<SvgNode, SvgNode> { public ObservableList<SvgNode> children() { if (myChildren == null) { myChildren = new SvgChildList(this); } return myChildren; }  SvgNodeContainer container(); ObservableList<SvgNode> children(); boolean isAttached(); }
SvgNode extends SimpleComposite<SvgNode, SvgNode> { public ObservableList<SvgNode> children() { if (myChildren == null) { myChildren = new SvgChildList(this); } return myChildren; }  SvgNodeContainer container(); ObservableList<SvgNode> children(); boolean isAttached();  }