4 * Copyright, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://www.tinymce.com/license
8 * Contributing: http://www.tinymce.com/contributing
12 * Creates a new panel.
15 * @class tinymce.ui.Panel
16 * @extends tinymce.ui.Container
17 * @mixes tinymce.ui.Scrollable
19 define("tinymce/ui/Panel", [
20 "tinymce/ui/Container",
21 "tinymce/ui/Scrollable"
22 ], function(Container, Scrollable) {
25 return Container.extend({
34 * Renders the control as a HTML string.
37 * @return {String} HTML representing the control.
39 renderHtml: function() {
40 var self = this, layout = self._layout, innerHtml = self.settings.html;
43 layout.preRender(self);
45 if (typeof(innerHtml) == "undefined") {
47 '<div id="' + self._id + '-body" class="' + self.classes('body') + '">' +
48 layout.renderHtml(self) +
52 if (typeof(innerHtml) == 'function') {
53 innerHtml = innerHtml.call(self);
56 self._hasBody = false;
60 '<div id="' + self._id + '" class="' + self.classes() + '" hideFocus="1" tabIndex="-1">' +
61 (self._preBodyHtml || '') +