Hi Fabian,
I think I will take option 2) and ask you ;-)
It "feels" smarter to be able to refine a property by re-defining a
property attribute like apply and check.
One refinement for check would be to tighten the allowed values:
previous "String" after refining a String of max length 10.
In 0.6 what I often did was to override the modifier of a property.
Now if you have a look on the other side: what is the benefit of denying
the refinement of those attributes?
Fabian Jakobs schrieb:
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
--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner
-------------------------------------------------------------------------
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