Ext.ns("Js.viewdevices");Js.viewdevices.ViewDevices=function(){};var viewdevices=Js.viewdevices.ViewDevices.prototype;var gConfig;viewdevices.initialize=function(a){this.parentCt=a.parentCt;gConfig=a;this.node=a.node;this.taskParameters=a.taskParameters;this.loadDependencies(a)};viewdevices.construct=function(){var a=this.build(gConfig);this.viewdevicesTaskWindow=new Jx.JxTaskWindow({title:"View Devices",maximized:true,layout:"fit",items:[a]});this.viewdevicesTaskWindow.render(this.parentCt.getEl());this.viewdevicesTaskWindow.show()};viewdevices.show=function(){var a=Jx.SelectionModel.getPreviousSelectedNode();if(a==this.node){this.construct()}};viewdevices.destroy=function(){if((this.viewdevicesTaskWindow!==undefined)&&(this.viewdevicesTaskWindow!==null)){this.viewdevicesTaskWindow.close()} this.removeDepedencies()};viewdevices.loadDependencies=function(a) {this.jsFiles=[];if(a.debug){this.jsFiles.push (["js","/ui/jssdk/hello-space/js/hellospace.DeviceStore.js"]); this.jsFiles.push(["js","/ui/jssdk/hello-space/js/hellospace.DeviceMasterDetail.ui.js"]);this.jsFiles.push(["js","/ui/jssdk/hello-space/js/hellospace.DeviceMasterDetail.js"]);Jx.JxUtilities.require(this.jsFiles,this.show.createDelegate(this))}};viewdevices.removeDepedencies=function(){if(this.jsFiles.length>0){Jx.JxUtilities.removeFiles("js",this.jsFiles)}};viewdevices.build=function(a) {return new hellospace.DeviceMasterDetail(a)};