code: @Override
      public void setParent(View parent)
      {
  
          if (parent == null && view != null) view.setParent(null);
          this.parent = parent;
  
          // if set new parent and has some element, try to load children
          // this element is a BranchElement ("collection"),
          // so we should have some LeafElements ("children")
          if ((parent != null) && (getElement() != null))
          {
              ViewFactory f = getViewFactory();
              loadChildren(f);
          }
      }
docs: Sets the view parent.
  
  @param parent
  the parent view