1 /* ************************************************************************
3 qooxdoo - the new era of web development
8 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org
11 LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
14 * Sebastian Werner (wpbasti)
15 * Andreas Ecker (ecker)
17 ************************************************************************ */
19 /* ************************************************************************
23 ************************************************************************ */
25 qx.OO.defineClass("qx.ui.embed.NodeEmbed", qx.ui.basic.Terminator,
28 qx.ui.basic.Terminator.call(this);
30 if (qx.util.Validation.isValidString(vId)) {
31 this.setSourceNodeId(vId);
35 qx.OO.addProperty({ name : "sourceNodeId", type : "string" });
37 qx.Proto._createElementImpl = function()
39 var vNode = document.getElementById(this.getSourceNodeId());
42 throw new Error("Could not find source node with ID: " + this.getSourceNodeId());
45 vNode.style.display = "";
47 return this.setElement(vNode);