Hi,

I have a general query.

If I access some private variables of a qooxdoo class (variables with 
double underscore __) in my application code, does the build process 
generate error ?
Earlier, I had:
/*--code snippet of class inheriting qx.ui.table.Table--*
/var bt = this.__columnVisibilityBt;
var menu = bt.getMenu();
        
if (menu)
        {
          var entries = menu.getChildren();
          for (var i=0,l=entries.length; i<l; i++) {
            if(entries[i])entries[i].destroy();
          }
        }/
*--code snippet --*/

and I used to get error (inside custom-0.js) as  :
var D=this.__columnVisibilityBt;
var E=D.getMenu();

I have to do this patch, else the column visibility button in Table gets 
shown twice. This has been patched in v0.8.1 but it has some other 
errors so I am using v0.8 only.

Then, I modified my code to :
var bt = this._getChildControl("column-button");
var menu = bt.getMenu();

and the error got resolved.

So, I ask this generic query as can I refer to private members of SDK 
(though this is against the OO concept !!) but its a boon in JS I guess.

Regards

-- 
Amit Rana 
________________________________________ 

SpagoBI Consultant 
Research & Innovation Division 
Engineering Ingegneria Informatica S.p.A. 
Strada 2, Palazzo D3 - 20090, 
Milanofiori Assago (Milan) - Italy 

Phone:  +39-02 5282 0462    
Mobile:  +39-327 611 5975 
www.eng.it            www.spagoworld.org 
________________________________________


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to