Re: [qooxdoo-devel] Structured Properties
Brought to you by:
ecker,
martinwittemann
From: Mustafa S. <mus...@1u...> - 2014-02-25 13:12:08
|
Hey Pierre, If you want to have full qooxdoo properties feature set, you have to create two classes like here: http://tinyurl.com/qzj4rxe But if you wish to have a model which automatically generates a cascaded class structure by JSON value, you can use this example: http://tinyurl.com/la2e2ut Gruß Mustafa Sak Applications & Integration 1&1 Internet AG Ernst-Frey-Straße 10 DE-76135 Karlsruhe Von: Pierre Dupree [mailto:dup...@gm...] Gesendet: Montag, 24. Februar 2014 23:33 An: qoo...@li... Betreff: [qooxdoo-devel] Structured Properties Hey guys, can someone explain to me how I can create a model class with a structured property? By structured property I mean the following: myClass { Properties : { prop1 : { }, prop2 : { subprop1 : { } subprop2 : { } } } } afterwards I would be able to access the subproperties via myObject (instance of myClass) using myObject.getProp2().getSubprop1(); How exactly would the code look for that? Thanks very much! |