HD.Widget=function(A){this.config=A;
this.loadTemplates(arguments.callee);
if(this.config.parent){this.config.parent=HD.get(this.config.parent)||this.config.parent
}};
HD.Widget.prototype={getParent:function(){return HD.get(this.config.parent)
},render:function(B){var A=this.getParent();
A.innerHTML=this.getHtml(B);
this.setListeners(B);
if(this.printable){this.setPrintListeners(A)
}},setListeners:function(A){},destroy:function(){var A=this.getParent();
A.innerHTML=""
},loading:function(A){var B=this.getParent();
if(A){HD.addClass(B,HD.CSS_CLASSES.LOADING)
}else{HD.removeClass(B,HD.CSS_CLASSES.LOADING)
}},update:function(A,B){},getHtml:function(A){return""
},analyticsString:function(){return""
}};
HD.extend(HD.Widget,[HD.util.Observable,HD.util.Template]);
if(HD.util.Printable){HD.extend(HD.Widget,[HD.util.Printable])
}HD.register("hd_widget",HD.Widget,{version:"1.0",build:"1"});