/**
#kesrequire(share/webwidgets/ui/root/Abstract.js)
*/


/**
 * Root, der sich an ein bereits existierendes Element anheftet.
 */
qx.Class.define("nx4.webwidgets.ui.root.Attach",
{
  extend : nx4.webwidgets.ui.root.Abstract,





  /*
  *****************************************************************************
     CONSTRUCTOR
  *****************************************************************************
  */

  /**
   * @param doc {Document} Document to use
   */
  construct : function(elem)
  {
    this.__definedElement = elem;
    this.base(arguments);
  },





  /*
  *****************************************************************************
     MEMBERS
  *****************************************************************************
  */

  members :
  {
    // overridden
    _createContainerElement : function()
    {
      var el = new qx.html.Root(this.__definedElement);
      el.setStyle("position", "relative");
      return el;
    }
  },




  /*
  *****************************************************************************
     DESTRUCT
  *****************************************************************************
  */

  destruct : function() {
  }
});

