You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/09/11 20:46:17 UTC

svn commit: r442343 - /incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js

Author: mturyn
Date: Mon Sep 11 13:46:17 2006
New Revision: 442343

URL: http://svn.apache.org/viewvc?view=rev&rev=442343
Log:
Added a backgroundColor-setting method.

Modified:
    incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js?view=diff&rev=442343&r1=442342&r2=442343
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js Mon Sep 11 13:46:17 2006
@@ -64,3 +64,9 @@
 xap.bridges.xap.LabelBridge.prototype.setTextPlacementVerticalAttribute = function(alignment) {
 	this.getPeer().setTextPlacementVertical(alignment);
 }
+
+/** XML attribute set method for "backgroundColor" */
+xap.bridges.xap.LabelBridge.prototype.setBackgroundColorAttribute = function(value){
+	xap.widgets.styleSet(this.getPeer().td, {backgroundColor: value}) ;
+}
+