incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r532375 - /incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js
Date Wed, 25 Apr 2007 14:47:36 GMT
Author: mturyn
Date: Wed Apr 25 07:47:35 2007
New Revision: 532375

URL: http://svn.apache.org/viewvc?view=rev&rev=532375
Log:
Added getDefaultPropertyMap() so that subclasses can customise their widgets better,
esp. by specifying a non-default css template path.

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js?view=diff&rev=532375&r1=532374&r2=532375
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js Wed Apr 25 07:47:35
2007
@@ -82,6 +82,20 @@
  }
 
 
+/**
+ *	@return An object with a class-specific property map for use in <code>obtainPeer</code>
q.v..<b> 
+ *	This is initially being added to allow different CSS templates to be used  for
+ *  Dojo widgets, 
+ *	<center>		{cssTemplatePath: &lt; some URI &gt;	</center>
+ *	but could be used otherwise as needed.
+ *  @see  xap.bridges.dojo.MenuBridge
+ *	@see xap.bridges.dojo.DojoWidgetBridge#obtainPeer
+**/
+xap.bridges.dojo.DojoWidgetBridge.prototype.getDefaultPropertyMap = function() {
+	return {} ;
+}
+
+
  /**
  * 
  * Since the <code>dojo.widget.createWidget()</code> 
@@ -95,7 +109,7 @@
         
    		// These properties of the map might be overwritten by a passed-in map:
    		// (by default, widget i.d. === xap i.d.)
-        var propertyMap = {} ;  
+        var propertyMap = this.getDefaultPropertyMap() ;  
         			      			
 		// map xal attributes to widget attributes, where possible;
 		// when last parameter is extant and "true", remove the



Mime
View raw message