Hi all,

I'm not sure whether my attempt is considered evil coding so I would
want to ask here for comments/hints.

Tried this with 0.8.3 and trunk with no difference.

I have three classes.  One abstract base class with the necessary tree
properties (label, children) and then two derived classes, let's say A
and B, without any properties.  I can use getChildren and setChildren on
instances of the derived classes to build up a model tree of nodes with
type A and B mixed together.  But when I try to use this tree as model
with the tree controller I get an error.

I found, that the tree controller is calling
qx.util.PropertyUtil.getProperties(modelNode.constructor) (Line 490 in
qx.data.controller.Tree.js) which is simply returning
modelNode.constructor.$$properties.  But inherited properties are not
listed there (in my example the questioned property is listed in
modelNode.constructor.superclass.constructor.$$properties).

There are a lot of ways to work around this - I know -, but after I was
able to get and set the inherited properties I would expect them to be
usable transparantly in data binding. Especially because in this
particular case e.g. a "HAS A" model for the tree nodes would be less
appropriate then an "IS A" modelling.

Or did I get something wrong here?

Cheers and thanks,
Axel


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to