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 jm...@apache.org on 2006/09/22 17:04:19 UTC
svn commit: r448999 - /incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js
Author: jmargaris
Date: Fri Sep 22 10:04:19 2006
New Revision: 448999
URL: http://svn.apache.org/viewvc?view=rev&rev=448999
Log:
added setUrl removed unneeded stuff
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=448999&r1=448998&r2=448999
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js Fri Sep 22 10:04:19 2006
@@ -41,9 +41,13 @@
}
xap.bridges.xap.LabelBridge.prototype.getNewAllowedAttributes = function() {
- return ["text", "alignVertical", "alignHorizontal", "textPlacementHorizontal", "textPlacementVertical"];
+ return ["img","text", "alignVertical", "alignHorizontal", "textPlacementHorizontal", "textPlacementVertical"];
}
+xap.bridges.xap.LabelBridge.prototype.setImgAttribute = function(imgUrl) {
+ this.getPeer().setImage(imgUrl);
+}
+
xap.bridges.xap.LabelBridge.prototype.setTextAttribute = function(text) {
this.getPeer().setText(text);
}
@@ -63,31 +67,3 @@
xap.bridges.xap.LabelBridge.prototype.setTextPlacementVerticalAttribute = function(alignment) {
this.getPeer().setTextPlacementVertical(alignment);
}
-
-xap.bridges.xap.LabelBridge.prototype.setBackgroundColorAttribute = function(value){
- xap.widgets.styleSet(this.getPeer().td, {backgroundColor: value}) ;
-}
-
-
-/* Override Methods */
-
-xap.bridges.xap.LabelBridge.prototype.setColorAttribute = function(value){
- this.getPeer().td.style.color = value ;
-}
-
-xap.bridges.xap.LabelBridge.prototype.setFontFamilyAttribute = function(value){
- this.getPeer().td.style.fontFamily = value ;
-}
-
-xap.bridges.xap.LabelBridge.prototype.setFontSizeAttribute = function(value){
- this.getPeer().td.style.fontSize = value ;
-}
-
-xap.bridges.xap.LabelBridge.prototype.setFontStyleAttribute = function(value){
- this.getPeer().td.style.fontStyle = value ;
-}
-
-xap.bridges.xap.LabelBridge.prototype.setFontWeightAttribute = function(value){
- this.getPeer().td.style.fontWeight = value ;
-}
-