public/javascripts/yui/container/container.js
function (headerContent) {
            var oHeader = this.header || (this.header = createHeader());

            if (headerContent.nodeName) {
                oHeader.innerHTML = "";
                oHeader.appendChild(headerContent);
            } else {
                oHeader.innerHTML = headerContent;
            }

            if (this._rendered) {
                this._renderHeader();
            }

            this.changeHeaderEvent.fire(headerContent);
            this.changeContentEvent.fire();

        }
function (headerContent) {
            var oHeader = this.header || (this.header = createHeader());

            if (headerContent.nodeName) {
                oHeader.innerHTML = "";
                oHeader.appendChild(headerContent);
            } else {
                oHeader.innerHTML = headerContent;
            }

            if (this._rendered) {
                this._renderHeader();
            }

            this.changeHeaderEvent.fire(headerContent);
            this.changeContentEvent.fire();

        }
function ( headerContent ) { var oHeader = this . header || ( this . header = createHeader ( ) ) ; if ( headerContent . nodeName ) { oHeader . innerHTML = "" ; oHeader . appendChild ( headerContent ) ; } else { oHeader . innerHTML = headerContent ; } if ( this . _rendered ) { this . _renderHeader ( ) ; } this . changeHeaderEvent . fire ( headerContent ) ; this . changeContentEvent . fire ( ) ; }
Sets the Module's header content to the string specified, or appends
the passed element to the header. If no header is present, one will
be automatically created. An empty string can be passed to the method
to clear the contents of the header.

@method setHeader
@param {String} headerContent The string used to set the header.
As a convenience, non HTMLElement objects can also be passed into
the method, and will be treated as strings, with the header innerHTML
set to their default toString implementations.
<em>OR</em>
@param {HTMLElement} headerContent The HTMLElement to append to
<em>OR</em>
@param {DocumentFragment} headerContent The document fragment
containing elements which are to be added to the header
Sets the Module s header content to the string specified or appends the passed element to the header . If no header is present one will be automatically created . An empty string can be passed to the method to clear the contents of the header .