2011-08-29 17:04:10 +02:00
|
|
|
/**
|
2012-03-23 13:20:57 +01:00
|
|
|
* eGroupWare eTemplate2 - dataview
|
2011-08-29 17:04:10 +02:00
|
|
|
*
|
|
|
|
* @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
|
2012-03-23 13:20:57 +01:00
|
|
|
* @copyright Stylite 2011-2012
|
2011-08-29 17:04:10 +02:00
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
/*egw:uses
|
2011-09-09 16:32:55 +02:00
|
|
|
egw_action.egw_action;
|
|
|
|
|
2011-09-09 11:57:59 +02:00
|
|
|
et2_dataview_view_container;
|
2011-08-29 17:04:10 +02:00
|
|
|
*/
|
|
|
|
|
2012-03-23 13:20:57 +01:00
|
|
|
var et2_dataview_row = et2_dataview_container.extend({
|
2011-08-29 17:04:10 +02:00
|
|
|
|
2012-03-23 13:20:57 +01:00
|
|
|
/**
|
|
|
|
* Creates the row container. Use the "setRow" function to load the actual
|
|
|
|
* row content.
|
|
|
|
*
|
|
|
|
* @param _parent is the row parent container.
|
|
|
|
*/
|
|
|
|
init: function(_parent) {
|
|
|
|
// Call the inherited constructor
|
|
|
|
this._super(_parent);
|
2011-08-31 17:39:24 +02:00
|
|
|
|
2012-03-23 13:20:57 +01:00
|
|
|
// Create the outer "tr" tag and append it to the container
|
|
|
|
this.tr = $j(document.createElement("tr"));
|
2011-08-31 17:39:24 +02:00
|
|
|
this.appendNode(this.tr);
|
2011-08-29 17:04:10 +02:00
|
|
|
},
|
|
|
|
|
2012-03-23 13:20:57 +01:00
|
|
|
clear: function() {
|
|
|
|
this.tr.empty();
|
2011-09-05 16:35:28 +02:00
|
|
|
},
|
|
|
|
|
2012-03-23 13:20:57 +01:00
|
|
|
getDOMNode: function() {
|
|
|
|
return this.tr[0];
|
2011-08-29 17:04:10 +02:00
|
|
|
},
|
|
|
|
|
2012-03-23 13:20:57 +01:00
|
|
|
getJNode: function() {
|
|
|
|
return this.tr;
|
2011-08-29 17:04:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
});
|
2011-08-31 17:39:24 +02:00
|
|
|
|