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