Cell editing in RAP tree [message #51810] |
Tue, 16 October 2007 07:31  |
Eclipse User |
|
|
|
I would like to write simple tree cell editor by enabling browser-side
cell editing for qooxdoo tree, intercepting edits in TreeItemLCA and
applying them server-side. I know how to enable editing for qooxdoo
tree, backed by model (setColumnEditable method), but not for RAP tree
subclass. I've been looking in javascript sources for
org.eclipse.swt.widgets.Tree, and it seems that there is no tree model,
but that all tree updates are made by event callbacks to server side.
Does anyone know of a reasonably simple way to add qooxdoo cell editors
to this class ?
-a
|
|
|
Re: Cell editing in RAP tree [message #54340 is a reply to message #51810] |
Mon, 22 October 2007 12:36  |
Eclipse User |
|
|
|
Hi Aleksander,
it seems your talking about the "qx.ui.treevirtual.TreeVirtual". As the
virtual tree of qooxdoo is in a very early development stage we are
using the "qx.ui.tree.Tree" which has no real model behind it.
org.eclipse.swt.widgets.Tree is just a wrapper around that qx widget to
enable column headers. If you really want to go that way to implement
cell-editing on the client-side i would recommend you to replace the
corresponding Atom in the TreeItems with a TextField to enable editing.
As I said this isn't an easy task. But if you still want to work on
this, don't hesitate to ask questions or to show a working example :)
So far
Benny
Aleksander Bandelj wrote:
> I would like to write simple tree cell editor by enabling browser-side
> cell editing for qooxdoo tree, intercepting edits in TreeItemLCA and
> applying them server-side. I know how to enable editing for qooxdoo
> tree, backed by model (setColumnEditable method), but not for RAP tree
> subclass. I've been looking in javascript sources for
> org.eclipse.swt.widgets.Tree, and it seems that there is no tree model,
> but that all tree updates are made by event callbacks to server side.
> Does anyone know of a reasonably simple way to add qooxdoo cell editors
> to this class ?
>
> -a
|
|
|
Powered by
FUDForum. Page generated in 0.03237 seconds