Hello Amit,
as you said right, what you were trying to do is against the OO
concepts. Because of that, the qooxdoos generator takes the liberty of
optimizing such code, which means renaming the private fields to
something completely different. That way, such code you demonstrated
does not work. But we don't want to force our users to do it that way.
You can disable the "privates" optimization in the config for the
generator. Take a look at the generator config keys reference wiki
page (http://qooxdoo.org/documentation/0.8/generator_config_ref#compile-dist
) if you want to know exactly how to do that.
Best,
Martin
Am 14.05.2009 um 16:17 schrieb Amit Rana:
> 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
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel