Complex cells in Table and TreeTable [message #435173] |
Fri, 23 April 2004 19:08 |
Eclipse User |
|
|
|
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 #435216 is a reply to message #435173] |
Sun, 25 April 2004 12:35 |
Eclipse User |
|
|
|
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 |
Paul E. Keyser 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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02960 seconds