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 2007/04/25 14:47:36 UTC
svn commit: r532375 -
/incubator/xap/trunk/codebase/src/xap/bridges/dojo/DojoWidgetBridge.js
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: < some URI > </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