Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Complex cells in Table and TreeTable
Complex cells in Table and TreeTable [message #435173] Fri, 23 April 2004 19:08 Go to next message
Eclipse UserFriend
Originally posted by: maciek.samsel.gs.com

Hello,

Is it possible to create complex cells in Table or TreeTable class objects?

I noticed that I could have text and image, but I would like to have for
example formatted values for money (financial with separators), sort of
CheckBoxes (inside cell) and drop downs so I could change values from
selections on-fly.

Is it possible with SWT at all?


Thank you,
Maciek
Re: Complex cells in Table and TreeTable [message #435183 is a reply to message #435173] Sat, 24 April 2004 07:33 Go to previous messageGo to next message
Mike Lischke is currently offline Mike LischkeFriend
Messages: 78
Registered: July 2009
Member
Maciek Samsel wrote

>Is it possible with SWT at all?

AFAIK no. On Windows Table is just a wrapper for the system listview,
which does not even allow to edit every cell. There is the TableCursor to
provide that functionality, but this does not mean you can use more
complex content using it. The windows listview allows for custom draw but
since SWT is supposed to run on other platforms as well this functionality
is not available to applications.

Mike
--
www.soft-gems.net
Re: Complex cells in Table and TreeTable [message #435216 is a reply to message #435173] Sun, 25 April 2004 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micasim.gmx.de

Hi Maciek,

not within SWT, but take a look at org.eclipse.jface.viewers.CellEditor
and its descendants.
The formatting of values is done by the LabelProvider, that you set on the
TreeViewer/TableViewer.
AFAIK there's no JFace Viewer you could use with TreeTable.
On the other hand you might take a look at KTable by Friedrich Kupzog
( http://www.kupzog.de/fkmk_uk/Programming/Downloads/downloads .html).

hope this helps,
Michael

On Fri, 23 Apr 2004 19:08:02 +0000 (UTC), Maciek Samsel
<maciek.samsel@gs.com> wrote:

> Hello,
>
> Is it possible to create complex cells in Table or TreeTable class
> objects?
>
> I noticed that I could have text and image, but I would like to have for
> example formatted values for money (financial with separators), sort of
> CheckBoxes (inside cell) and drop downs so I could change values from
> selections on-fly.
>
> Is it possible with SWT at all?
>
>
> Thank you,
> Maciek
>
Re: Complex cells in Table and TreeTable [message #440230 is a reply to message #435216] Mon, 26 July 2004 22:50 Go to previous message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
In fact there is a TableTreeViewer, and using it (and the CellEditor
hierarchy, together with the ICellModifier interface) you can definitely
get cell-editing with check-boxes, text-fields, and combo-boxes, so long
as you obey the SWT rule that any given column of a Table(Tree) may have
but one type of cell-editor. Formatted values I think not.

HTH,
Paul

Michael Simons wrote:

> Hi Maciek,
>
> not within SWT, but take a look at org.eclipse.jface.viewers.CellEditor
> and its descendants.
> The formatting of values is done by the LabelProvider, that you set on
> the TreeViewer/TableViewer.
> AFAIK there's no JFace Viewer you could use with TreeTable.
> On the other hand you might take a look at KTable by Friedrich Kupzog
> ( http://www.kupzog.de/fkmk_uk/Programming/Downloads/downloads .html).
>
> hope this helps,
> Michael
>
> On Fri, 23 Apr 2004 19:08:02 +0000 (UTC), Maciek Samsel
> <maciek.samsel@gs.com> wrote:
>
>> Hello,
>>
>> Is it possible to create complex cells in Table or TreeTable class
>> objects?
>>
>> I noticed that I could have text and image, but I would like to have for
>> example formatted values for money (financial with separators), sort of
>> CheckBoxes (inside cell) and drop downs so I could change values from
>> selections on-fly.
>>
>> Is it possible with SWT at all?
>>
>>
>> Thank you,
>> Maciek
>>
Previous Topic:problem implementing content provider for a table viewer
Next Topic:How to prevent a TableTree from collapsing
Goto Forum:
  


Current Time: Thu Mar 28 13:31:09 GMT 2024

Powered by FUDForum. Page generated in 0.03648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top