var tu=I.ea(I,"AdfDhtmlPanelLabelAndMessagePeer");m("AdfDhtmlPanelLabelAndMessagePeer",tu);tu.C=function(){this.yi="content";tu.Hea={INPUT:!0,SELECT:!0,TEXTAREA:!0};I.hc(this,AdfRichPanelLabelAndMessage.LABEL);I.sb(this,AdfRichPanelLabelAndMessage.LABEL,AdfRichPanelLabelAndMessage.SHOW_REQUIRED)};m("AdfDhtmlPanelLabelAndMessagePeer.InitSubclass",tu.C);
tu.prototype.G=function(a,b){tu.h.G.call(this,a,b);var d=this.V4(a,b);if(null!=d){var e=d.htmlFor;if(e&&(forObject=q.b.getElementById(e),null==forObject||!tu.Hea[forObject.tagName])){var f=e.length-9;if(0<f&&(e=e.substring(0,f),f=q.b.getElementById(e),null!=f))if(tu.Hea[f.tagName])d.htmlFor=e;else for(e=f.childNodes,i=0;i<e.length;i++)if(tu.Hea[e[i].tagName]){d.htmlFor=e[i].id;break}}}};r.a("AdfDhtmlPanelLabelAndMessagePeer.prototype.InitDomElement",{G:tu.prototype.G});tu.prototype.Oa=function(){return gi.jd()};
r.a("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetInlineEditor",{Oa:tu.prototype.Oa});tu.prototype.ti=function(a,b){var d=this.V4(a,b);return null!=d?q.b.mc(d):null};r.a("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetComponentLabel",{ti:tu.prototype.ti});tu.prototype.V4=function(a,b){var d=a.getFor(),e=null;d&&(d=I.j(d,tu.yi),e=C.nj(b,"for",d,"LABEL"));return e};