示例#1
0
 /*
  * @see org.primordion.xholon.base.IXholon#insertBefore(org.primordion.xholon.base.IXholon)
  */
 public void insertBefore(XholonTreeNode newNextSibling) {
   parent = newNextSibling.getParentNode();
   if (parent.getFirstChild() == newNextSibling) {
     parent.setFirstChild(this);
   } else {
     XholonTreeNode lSibling = newNextSibling.getPreviousSibling();
     lSibling.setNextSibling(this);
   }
   setNextSibling(newNextSibling);
 }
示例#2
0
 /*
  * @see org.primordion.xholon.base.IXholon#setParentChildLinks()
  */
 public void setParentChildLinks(XholonTreeNode parent) {
   setParentNode(parent);
   parent.setFirstChild(this);
 }