Dietrich Streifert schrieb:
> Moin Sebastian,
>
> Let's go back to the apply method:
>
> What would be the cost of allowing the modification of the apply
> attribute of properties?
>
> This was my problem which lead to this thread.
>
> Within a derived widget I wanted to override the apply method of the
> superclass. It turned out that there was no apply method defined.
>
> One solution would be to allow to refine "not yet defined" attributes of
> a property. This would be the event and apply attribute.
>
> Would this be possible?
This is not possible for the same reason.
You can however override any already existing method. But this requires
that the original author has defined such a method. The only well
working way in this case is to send feedback to the developer of the
original class. I think this isn't a problem in most cases.
Sebastian
>
>
> Sebastian Werner schrieb:
>> Ok, there are multiple reasons. One major argument is that type changes
>> would allow to switch types completely e.g. from check=String to
>> check=Number for example. Most people would tend to say that this is a
>> bad software design.
>>
>> Another, more technical reason, is that all other changes than init
>> values require a separate setter/getter(...) pair which means that we
>> need to migrate the property defitition of the parent with the
>> overridden settings in the derived class. For example when you change
>> the "check", but want to keep the "nullable" and "init" values. You also
>> need a far more complex check if the this class needs an own
>> setter/getter pair. And there is also an overhead because you need to
>> generate more functions.
>>
>> I think we would life the best to keep it with the current
>> implementation and the existing restrictions.
>>
>> Sebastian
>>
>>
>>
>> Dietrich Streifert schrieb:
>>
>>> Hi Fabian,
>>>
>>> well the limitation is simple to change in Class.js, line 1188:
>>>
>>> if (key !== "init" && key !== "refine") {
>>>
>>> just remove the key !== "init" check ;-)
>>>
>>>
>>>
>>> Fabian Jakobs schrieb:
>>>
>>>> As far as I understand the new properties it is a limitation of the
>>>> implementation, which prevents us from supporting this. I think
>>>> Sebastian can tell you more about this but he won't be in office till
>>>> Monday.
>>>>
>>>> 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
>>>>
>>>>
>>
>>
>> -------------------------------------------------------------------------
>> 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
-------------------------------------------------------------------------
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