123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
"use strict";
modulum('VBoxWidget', ['BoxWidget', 'WidgetFactory'],
function(context, cls) {
cls.VBoxWidget = context.oo.Class(cls.BoxWidget, function($super) {
return {
__name: "VBoxWidget",
constructor: function(opts) {
$super.constructor.call(this, opts);
this._element.addClass("g_VBoxLayoutEngine");
},
_initLayout: function() {
this._layoutInformation = new cls.LayoutInformation(this);
this._layoutEngine = new cls.VBoxLayoutEngine(this);
},
_createSplitter: function() {
return cls.WidgetFactory.createWidget("VBoxSplitter", this.getBuildParameters());
}
};
});
cls.WidgetFactory.registerBuilder('VBox', cls.VBoxWidget);
cls.WidgetFactory.registerBuilder('HBox[customWidget=vbox]', cls.VBoxWidget);
});