@martin in my example, http://pastebin.com/6f7HXFcR
we use it among other for lazy loading on properties access, we also have a
custom "garbage collector" based on properties access (
http://pastebin.com/c2rBSUq5), we "reset" init values when object is saved
to server (http://pastebin.com/E6DPCPDr) etc.
This code is core for our application but it's old and very stable so I
can't remember exactly why we've made this choice...
This part of the application is a sort of orm, we can filter objects, load
and save data, add relations to objects and there is no need to develop any
client-server specif code if we add a new class of objects or if we change
properties.
Maybe there is a better way of doing this but this one is well-tried, has
test-cases and is tens of thousands lines...
Sincerely,
David
2013/7/25 Peter Schneider <[email protected]>
> > Hey,
> > could you guys give me some feedback why you want to use it?
> > Regards,
> > Martin
>
> I can't find exactly any example, but I remember that I once wanted a kind
> of
> 'readOnly' property.
> If I remember correct, this was done by overwriting the setter method in
> the
> derived class.
> Something like:
>
> <code>
> qx.Class.define("Vehicle",
> {
> properties :
> {
> used : { check : "Boolean", init : true }
> }
> });
>
> qx.Class.define("Beetle",
> {
> extend : "Vehicle",
> members :
> {
> // make 'used' readOnly
> setUsed : function (value) {/*throw something*/ }
> }
> });
> </code>
>
> This was just coming out of my mind, and should not be take too seriously
> ;)
>
> And as I said, I currently can't find anything like this in my current
> work!
>
> Regards,
> Peter
>
> ***********************************************
> Achtung, wir sind umgezogen!
> Unsere neue Adresse:
> TIS GmbH
> Müller-Armack-Str. 8
> 46397 Bocholt
> ***********************************************
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel