Builder/Provider/Palete/Base.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 08:24:55 +0000 (16:24 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 08:24:55 +0000 (16:24 +0800)
Builder/Provider/Palete/Base.js

index 275cac2..bed107e 100644 (file)
@@ -21,6 +21,17 @@ Base = XObject.define(
         items : false, // the tree of nodes.
         
         
+        guessName : function(ar) // turns the object into full name.
+        {
+             // eg. xns: Roo, xtype: XXX -> Roo.xxx
+            if (typeof( ar['|xns'] ) == 'undefined' || typeof( ar['xtype'] ) == 'undefined') {
+                return '';
+               }
+             
+            return ar['|xns'] +'.' + ar['xtype'];
+                            
+                                 
+        },
         /**
          * gather a  list of potentional objects that can be added..
          *