123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
"use strict";
modulum('GridWidget', ['WidgetGridLayoutBase', 'WidgetFactory'],
function(context, cls) {
cls.GridWidget = context.oo.Class(cls.WidgetGridLayoutBase, function($super) {
return {
__name: "GridWidget",
_scrollWidget: null,
_pageSize: null,
_size: null,
destroy: function() {
if (this._scrollWidget) {
this._scrollWidget.destroy();
this._scrollWidget = null;
}
$super.destroy.call(this);
},
setEnabled: function(enabled) {
$super.setEnabled.call(this, enabled);
var scrollWidget = this.getScrollWidget();
if (scrollWidget) {
scrollWidget.setEnabled(enabled);
}
},
};
});
cls.WidgetFactory.registerBuilder('Grid', cls.GridWidget);
});