Re: [qooxdoo-devel] Structured Properties

2014-02-24 Thread Alex Gölkel
Hi Pierre, afaik this is not possible. You could use simple JS objects for this: myClass { prop1 : { check : "object" } } myObject.setProp1({subProp1:42}); alert (myObject.getProp1().subProp1); But if you change the supProps, no setter will be called. Or you can make a data class for your

Re: [qooxdoo-devel] Attempting to split Application.js

2014-02-24 Thread Peter Caffin
Hi guys. Thank you both for your assistance :) Richard Sternagel wrote: > But this wasn't your initial issue - it's an OO misunderstanding > (or you just forgot "new" :D). Thanks for that excellent explanation. Definitely a Javascript OO misunderstanding, I think :) thron7 wrote: > To put it i

[qooxdoo-devel] Qooxdoo Input Dialog Handling

2014-02-24 Thread Pierre Dupree
Hey guys, just a short question: How exactly can I retrieve the entered value in a qooxdoo mobile input dialog? The code would be the following: qx.ui.mobile.dialog.Manager.getInstance().input(title, text, function(index) { if (index==1) { //Button 1 pressed } else {

[qooxdoo-devel] Structured Properties

2014-02-24 Thread Pierre Dupree
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

Re: [qooxdoo-devel] Attempting to split Application.js

2014-02-24 Thread thron7
On Mon, Feb 24, 2014 at 11:40 AM, Richard Sternagel wrote: > Hi Peter, > >> Does the filename actually make a difference? > > Yes it does. Keep it always in sync with the class name. > > But this wasn't your initial issue - it's an OO misunderstanding > (or you just forgot "new" :D). > > Either do

Re: [qooxdoo-devel] dereferencing (or whatever it is called) a variable's value

2014-02-24 Thread Keve Nagy
> you could set userdata to your widgets and use the target, which is passed > in the event args: > >var myObjectArray = []; >var changeSelectionHander = function(e) { >var widget=e.getTarget(); >var rowIndex = widget.getUserData("ro

Re: [qooxdoo-devel] Attempting to split Application.js

2014-02-24 Thread Richard Sternagel
Hi Peter, > Does the filename actually make a difference? Yes it does. Keep it always in sync with the class name. But this wasn't your initial issue - it's an OO misunderstanding (or you just forgot "new" :D). Either do it like this: .--- | ... | button1.addListener("execute", padded_online.D

Re: [qooxdoo-devel] Locale - combination of multiple locales

2014-02-24 Thread kirra5
Thank you for your help! But unfortunately, this is not a solution. The "changeLocale" events will be fired and will need to update all the components properly. I can't change the setLocale, when I enter the form, because multiple forms will be visible at the same time (and also other components)