@qooxdoo/framework
Version:
The JS Framework for Coders
47 lines (33 loc) • 1.06 kB
JavaScript
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2009 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project's top-level directory for details.
Authors:
* Jonathan Weiß (jonathan_rass)
************************************************************************ */
qx.Class.define("qx.test.ui.virtual.performance.WidgetCell", {
extend: qx.test.ui.virtual.performance.AbstractLayerTest,
type: "abstract", // disabled
construct() {
super();
this._pool = [];
},
members: {
ITERATIONS: 3,
getLayer() {
return new qx.ui.virtual.layer.WidgetCell(this);
},
getCellWidget(row, column) {
var widget = this._pool.pop() || new qx.ui.basic.Label();
widget.setContent(row + " / " + column);
return widget;
},
poolCellWidget(widget) {
this._pool.push(widget);
}
}
});