Hi,
REF: http://demo.qooxdoo.org/devel/demobrowser/#virtual~Tree_Columns.html
I have a couple of questions and ideas regarding that example and its use.
It is important to me because what I'm trying to do is very close to what
the demo do. And I was able to do what I wanted but it was not as easy as it
should be considering that it is a very common use case (at least for me, I
had to do it for 3+ projects). And a little bit of feedback won't hurt,
right? so... :)
1. I see that it needs to configure the model before setting it to the tree
(configureTriState). That is going to be a problem when adding new items to
the model. The user will have to remember to configure each item before
adding it to the tree. It can lead to some items being configured and others
don't.
Maybe a solution could be configureItem as a delegate function, to
centralize that.
2. I don't know how the checkboxes in the tree could be useful the way it
is. But if we could use the checkboxes to determine the selection of the
tree, then it could be used in forms. Is there an easy way to bind the
checkbox to the selection? I tried some things but all was based on
subclass-ing (almost) all classes involved. Maybe there is a easier way, or
should exist.
(from what I see looking at other frameworks, the checkboxes are indeed used
to select items in the widget (ExtJS, ajax.org UI).
3. If 2. is considered, maybe the selection code in VirtualTree could be in
a Selection Manager class. And maybe, another selection manager class
(different from the default one) could handle checkboxes as selection
widgets. Imagine being able to do so:
tree.setSelectionManager(new
qx.ui.tree.selection.CheckboxSelectionManager());
and it all would be handled by that class.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel