rem: this.toString = function() { var out = ""; out += '<tr'; if (this.align != "left") out += ' align="' + this.align + '"'; if (this.valign != "middle") out += ' valign="' + this.valign + '"'; var style = 'style="'; if (this.borderColor != null) style += 'border-color:' + this.borderColor + ';'; if (this.borderStyle != null) style += 'border-style:' + this.borderStyle + ';'; if (this.borderWidth != null) style += 'border-width:' + this.borderWidth + ';'; if (this.bg != null) style += 'background-color:' + this.bg + ';'; if (this.style != null) style += this.style; if (this.selected) style += 'background-image:url(' + this.parent.semigray + ');'; if (style != 'style="') out += " " + style + '"'; 
add: this.toString = function() { var out = ""; out += '<tr'; if (this.align != "left") out += ' align="' + this.align + '"'; if (this.valign != "middle") out += ' valign="' + this.valign + '"'; var style = 'style="'; if (this.borderColor != null) style += 'border-color:' + this.borderColor + ';'; if (this.borderStyle != null) style += 'border-style:' + this.borderStyle + ';'; if (this.borderWidth != null) style += 'border-width:' + this.borderWidth + ';'; if (this.bg != null) style += 'background-color:' + this.bg + ';'; if (this.style != null) style += this.style; if (this.selected) style += 'background-image:url(' + this.parent.semigray + ');'; if (style != 'style="') out += " " + style + '"'; 
context: TRow = function(parent, row){	this.align		= "left";	this.valign		= "middle";	this.style		= null;	this.cells		= Array();	this.parent		= parent;	this.row		= row;	this.borderColor= null;	this.borderStyle= null;	this.borderWidth= null;	this.bg			= null;	this.selected	= false;	this.toString = function()	{		var out = "";		out += '<tr';		if (this.align != "left") out += ' align="' + this.align + '"';		if (this.valign != "middle") out += ' valign="' + this.valign + '"';		var style = 'style="';		if (this.borderColor != null) style += 'border-color:' + this.borderColor + ';';		if (this.borderStyle != null) style += 'border-style:' + this.borderStyle + ';';		if (this.borderWidth != null) style += 'border-width:' + this.borderWidth + ';';		if (this.bg != null) style += 'background-color:' + this.bg + ';';		if (this.style != null) style += this.style;		if (this.selected) style += 'background-image:url(' + this.parent.semigray + ');';		if (style != 'style="') out += " " + style + '"';		out += '>';		for (c = 0;c<this.cells.length;c++) {			out += this.cells[c].toString(c);		}		out += '</tr>';		return out;	}	this.Export = function()	{		var out = "";		out += '<tr';		if (this.align != "left") out += ' align="' + this.align + '"';		if (this.valign != "middle") out += ' valign="' + this.valign + '"';		var style = 'style="';		if (this.borderColor != null) style += 'border-color:' + this.borderColor + ';';		if (this.borderStyle != null) style += 'border-style:' + this.borderStyle + ';';		if (this.borderWidth != null) style += 'border-width:' + this.borderWidth + ';';		if (this.bg != null) style += 'background-color:' + this.bg + ';';		if (this.style != null) style += this.style;		if (style != 'style="') out += " " + style + '"';		out += '>';		for (c = 0;c<this.cells.length;c++) {			out += this.cells[c].Export(c);		}		out += '</tr>';		return out;	}	this.setPanels = function()	{		document.getElementById("aleft").style.background = "";		document.getElementById("acenter").style.background = "";		document.getElementById("aright").style.background = "";		document.getElementById("atop").style.background = "";		document.getElementById("amiddle").style.background = "";		document.getElementById("abottom").style.background = "";		document.getElementById("a" + this.align).style.background = "#F00";		document.getElementById("a" + this.valign).style.background = "#F00";		document.getElementById("bg").style.background = (this.bg == null)?"url(" + this.parent.empty + ")":this.bg;		document.getElementById("border").style.background = (this.borderColor == null)?"url(" + this.parent.empty + ")":this.borderColor;	}}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/527cf5457da0bbcd901319db3fb78a7f3c74d57b/table-editor.js/clean/fudge/wysiwyg/plugins/table_editing/table-editor.js