Dietrich Streifert schrieb:
> Hello List,
>
> on my first steps migrating my application to 0.7 I have the following
> problem:
>
> I want to derive a class from qx.ui.form.CheckBox which has the property
> value which is defined as follows:
>
> value :
> {
> check : "String",
> event : "changeValue"
> },
>
> In the derived class I want to refine the "value" property and add an
> apply method:
>
> value :
> {
> refine : true,
> apply : "_applyValue"
> },
>
> If I try that I get the following error:
>
> Class qx.visionet.ui.form.CheckBox could not refine property: value!
> Key: apply could not be refined!
> http://nra/qooxdoo.dev/frontend/framework/source/class/qx/Class.js
> Line 1189
>
> Overriding _applyValue does not work because there is not _applyValue in
> the superclass hierarchie.
>
> How can I solve this?
>
Hello Dietrich,
currently only the "init" value can be altered in "refined" properties.
Currently you have only two options:
1. Use the "changeValue" event. Everything you can do with an apply
method can also be done in the change event
2. Ask the original author (us) to add an apply method.
qooxdoo does have very few properties without either "apply" or "event"
so in must cases it is possible to catch the value change.
Best Fabian
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel