From xap-commits-return-488-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Fri Sep 22 17:04:41 2006 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 78346 invoked from network); 22 Sep 2006 17:04:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 17:04:41 -0000 Received: (qmail 48075 invoked by uid 500); 22 Sep 2006 17:04:38 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 48061 invoked by uid 500); 22 Sep 2006 17:04:38 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 48014 invoked by uid 99); 22 Sep 2006 17:04:38 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2006 10:04:38 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=jmargaris@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 140.211.166.113 cause and error) Received: from [140.211.166.113] ([140.211.166.113:58429] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 9D/A0-06791-F9714154 for ; Fri, 22 Sep 2006 10:04:34 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id CF7FE1A981F; Fri, 22 Sep 2006 10:04:19 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r448999 - /incubator/xap/trunk/src/xap/bridges/xap/LabelBridge.js Date: Fri, 22 Sep 2006 17:04:19 -0000 To: xap-commits@incubator.apache.org From: jmargaris@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060922170419.CF7FE1A981F@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 ; -} -