Hello,
I'd like to obtain this under but I don't know what I must to use. I need to access to the father of an object; I give you the idea under here:
Qt Code:
  1. public class MyElemNode extends MyNode {
  2. List<MyNode> child = new ArrayList<MyNode>();
  3.  
  4. public MyElemNode() { }
  5. public MyNode getFirstChild() { return child.get(0); }
  6. public MyNode getLastChild() { return child.get( child.size()-1 ); }
  7. public MyNode nextSiblingNode() { //1
  8. int i = getPositionOfThisObjectInFather.child();
  9. return father.child(i+1);
  10. }
  11. }
  12. //main
  13. MyElemNode e = new MyElemNode();
  14. e. add( new MyElemNode, new MyElemNode ......................);
  15. MyElemNode ep = e.get(5); //assuming it exists
  16. MyElemNode sib = ep.nextSibling(); // how to obtain this?
To copy to clipboard, switch view to plain text mode 
thanks