2011-08-29 17:04:10 +02:00
|
|
|
/**
|
|
|
|
* eGroupWare eTemplate2 - Class which contains a factory method for rows
|
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package etemplate
|
|
|
|
* @subpackage dataview
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Andreas Stöckel
|
|
|
|
* @copyright Stylite 2011
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
/*egw:uses
|
|
|
|
et2_dataview_interfaces;
|
|
|
|
*/
|
|
|
|
|
2011-08-31 17:39:24 +02:00
|
|
|
var et2_dataview_row = et2_dataview_container.extend(et2_dataview_IDataRow, {
|
2011-08-29 17:04:10 +02:00
|
|
|
|
2011-08-31 17:39:24 +02:00
|
|
|
init: function(_dataProvider, _rowProvider, _invalidationElem, _idx) {
|
|
|
|
|
|
|
|
this._super(_dataProvider, _rowProvider, _invalidationElem);
|
|
|
|
|
|
|
|
this.tr = this.rowProvider.getPrototype("default");
|
|
|
|
$j("div", this.tr).text("Blub");
|
|
|
|
this.appendNode(this.tr);
|
2011-08-29 17:04:10 +02:00
|
|
|
|
|
|
|
// Register this row in the dataprovider - if data is available for this
|
|
|
|
// row the "updateData" function will be called immediately.
|
2011-08-31 17:39:24 +02:00
|
|
|
//this.dataProvider.registerDataRow(_idx, this);
|
2011-08-29 17:04:10 +02:00
|
|
|
|
2011-08-31 17:39:24 +02:00
|
|
|
// if (this.tr == null)
|
|
|
|
// {
|
|
|
|
// }
|
2011-08-29 17:04:10 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
destroy: function() {
|
2011-08-31 17:39:24 +02:00
|
|
|
//this.dataProvider.unregisterDataRow(_idx);
|
2011-08-29 17:04:10 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
updateData: function(_data) {
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
2011-08-31 17:39:24 +02:00
|
|
|
|