Hi,
I do not think, you can do it. Even the"refine" key of a property will
only affect the initial value.
You should really think about your class design. If there is a property
of another type in the sub class you should give it another name,
because it is a different property and the semantics are different.
Furhtermore if you´d change the type of a property in a subclass how
can you be shure that there will be no problem if the base class uses
this property ?
HTH,
Rob.
>>> benco <[email protected]> 5/16/2011 10:36 >>>
Hello,
I'm currently trying to subclass an existing class and to overwrite an
existing property to allow more possibilities. The "check" function of
this
property is a problem because I can't redefine it in the subclass.
As it is impossible to completely and easily overwrite properties with
qx
class definitions, I was wondering how I could achieve doing it...
By using a Mixin ? Via the "include" directive or by using a "patch" ?
(I
don't know if the include declaration in class definitions triggers
also
patching when there are existing methods). I tried these two ways but
without success (the same check error occurs again).
Any ideas ?
Best,
Benoît.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/the-best-way-for-properties-real-overwritting-tp6367889p6367889.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel