Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Complex table design
Complex table design [message #447310] Mon, 13 December 2004 16:18 Go to next message
Chris Audley is currently offline Chris AudleyFriend
Messages: 41
Registered: July 2009
Member
I have a complex table design that I'd like to implement with SWT/JFace,
but I'm not sure its possible, any hints on how to accomplish this would
be appreciated.

We need a table where the contents of some columns is more complicated
than a single text string or image. For instance, in one column we may
need to display a set of radio buttons arranged vertically. In another
we need to display a 4x4 matrix of numbers, a table within a cell.

In Swing I could accomplish this by creating a JPanel based component
that displays the cell contents I want and then using that component as
a renderer for the table.

I'm wondering if there is a way to do this with SWT using TableEditor
where I could place a composite with my non-trivial cell layout over the
table cell to get the same effect.

Are there issues with trying to use TableEditor for an entire column of
a table that may contain 100+ rows of data? What about multiple columns
in this table.

Am I barking up the wrong tree, is there another way to accomplish this?

Thanks
Chris
Re: Complex table design [message #447316 is a reply to message #447310] Mon, 13 December 2004 17:15 Go to previous message
Mani Ghamari is currently offline Mani GhamariFriend
Messages: 33
Registered: July 2009
Member
See the following snippet (Placing arbitary controls in a table):

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet126.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

regards,

Mani

"Chris Audley" <chris.audley@beacon-cs.com> wrote in message
news:cpkfdm$ub6$1@www.eclipse.org...
>I have a complex table design that I'd like to implement with SWT/JFace,
>but I'm not sure its possible, any hints on how to accomplish this would be
>appreciated.
>
> We need a table where the contents of some columns is more complicated
> than a single text string or image. For instance, in one column we may
> need to display a set of radio buttons arranged vertically. In another we
> need to display a 4x4 matrix of numbers, a table within a cell.
>
> In Swing I could accomplish this by creating a JPanel based component that
> displays the cell contents I want and then using that component as a
> renderer for the table.
>
> I'm wondering if there is a way to do this with SWT using TableEditor
> where I could place a composite with my non-trivial cell layout over the
> table cell to get the same effect.
>
> Are there issues with trying to use TableEditor for an entire column of a
> table that may contain 100+ rows of data? What about multiple columns in
> this table.
>
> Am I barking up the wrong tree, is there another way to accomplish this?
>
> Thanks
> Chris
Previous Topic:ATT: Ms. Irvine - Bug in Eclipse Article: DND
Next Topic:Setting Table row height
Goto Forum:
  


Current Time: Fri Apr 19 22:40:24 GMT 2024

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

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

Back to the top