On Tue, Apr 6, 2010 at 06:26, Roberto Frisina <[email protected]>wrote:
> Hi All,
> I've a *TreeVirtual* and I want to edit the label for Leaf or Branch.
>
> In the *qx.ui.table.Table* widget is possible to make a column editable (
> tableModel.setColumnEditable(col, true) ) and after that i can execute the
> startEditing() of the focused cell.
>
> Is possible to make theese steps also for the *TreeVirtual* widget?
>
The standard selection manager for TreeVirtual,
qx.ui.treevirtual.SelectionManager, prevents editing in the tree column. To
enable it, you'd extend SelectionManager and override the _handleSelectEvent
method. You'd also need a custom cell editor that knows how to deal with
(and likely ignore) the various extra fields in that column (open/close
button, icons, etc.). I think you'll find it a non-trivial exercise, but it
should be doable.
If you want to write a cell editor to edit only the label, you'll likely
find the code that determines whether a click is on the open/close button,
also in _handleSelectEvent, to be a good reference as far as ascertaining
exactly where in that column the label is found.
Derrell
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel