maskat.lang.Class.declare("maskat.widget.html.Div").extend("maskat.widget.html.HTMLWidget",{defaultGetter:"getInnerHTML",defaultSetter:"setInnerHTML",createWidget:function(A){var B=document.createElement("div");B.className=this.className;B.style.position=this.position||"absolute";B.style.left=this.left+"px";B.style.top=this.top+"px";B.style.whiteSpace="nowrap";B.innerHTML=this.element||"";this.element=B},getInnerHTML:function(){return this.element.innerHTML},setInnerHTML:function(A){this.element.innerHTML=A}});maskat.lang.Class.declare("maskat.widget.html.HTMLWidget").extend("maskat.layout.Widget",{dispose:function(){maskat.lang.Object.dispose(this)},unwrap:function(){return this},getWidgetId:function(){return this.name},getElement:function(){return this.element},setParent:function(A){if(this.parent==A||!this.element){return }this.parent=A;A.appendChildElement(this.element)}});maskat.lang.Class.declare("maskat.widget.html.HTMLWidgetLibrary").extend("maskat.layout.WidgetLibrary",{getBindingConfiguration:function(){return{javaScriptGlobal:{type:maskat.widget.html.Script,children:{"#cdata-section":{property:"text"}}},javaScript:{type:maskat.widget.html.Script,children:{"#cdata-section":{property:"text"}}},divHtml:{type:maskat.widget.html.Div,attributes:{name:{type:"string",required:true},top:{type:"number",required:true},left:{type:"number",required:true},className:{type:"string"},position:{type:"enum",values:["static","relative","absolute"]}},children:{"#cdata-section":{property:"element"}}},iFrame:{type:maskat.widget.html.IFrame,attributes:{name:{type:"string",required:true},top:{type:"number",required:true},left:{type:"number",required:true},width:{type:"number",defaultValue:0},height:{type:"number",defaultValue:0},url:{type:"string",defaultValue:"about:blank"}}}}}});maskat.lang.Class.declare("maskat.widget.html.HTMLWidgetPlugin").extend("maskat.core.Plugin",{_static:{initialize:function(){maskat.core.Plugin.register(this)}},getPluginId:function(){return"html"},getVersion:function(){return"2.3.0.v20110408"},start:function(){var A=maskat.layout.LayoutXMLReader.getInstance();var B=new maskat.widget.html.HTMLWidgetLibrary();A.addWidgetLibrary(B)}});maskat.lang.Class.declare("maskat.widget.html.IFrame").extend("maskat.widget.html.HTMLWidget",{defaultGetter:"getSrc",defaultSetter:"setSrc",createWidget:function(B){var A=document.createElement("iframe");A.style.position="absolute";A.style.top=this.top;A.style.left=this.left;A.style.width=this.width;A.style.height=this.height;A.src=this.url;this.element=A},getSrc:function(){return this.element.src},setSrc:function(A){if(A){this.element.src=A}}});maskat.lang.Class.declare("maskat.widget.html.Script").extend("maskat.widget.html.HTMLWidget",{createWidget:function(A){maskat.app.loadJavaScriptFromString(this.text)},setParent:function(A){if(this.parent==A){return }this.parent=A}});