Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » multiple column table header
multiple column table header [message #901899] Tue, 14 August 2012 18:44 Go to next message
Martin Jacob is currently offline Martin Jacob
Messages: 116
Registered: July 2009
Senior Member
Hi,

how can I define a Table or TableView with a multiple column header? I found some thing for JTable
(http://www.crionics.com/public/swing_examples/JTableExamples1.html) but I think it wont work in
Eclipse.

the needed layout is:

+----------------------------------------------------------+
|Global header |
+----------------------------------------------------------+
|2nd level header A | 2nd level header B |
+----------------------------------------------------------+
|3rd level A | 3rd level B |3rd level D | 3rd level E |
+----------------------------------------------------------+
|col 1 | col2 |col 1 | col2 |col 1 | col2 |col 1 | col2 |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+


any idea how to implement this? Any hints would be appreciated, Martin
Re: multiple column table header [message #901923 is a reply to message #901899] Wed, 15 August 2012 01:42 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
On 2012-08-15 00:44, Martin Jacob wrote:
> how can I define a Table or TableView with a multiple column header? I
> found some thing for JTable
> (http://www.crionics.com/public/swing_examples/JTableExamples1.html) but
> I think it wont work in Eclipse.

You are right, SWT Table cannot represent multiple column headers.

> any idea how to implement this? Any hints would be appreciated, Martin

I suggest to consider to use more capable Table framework, e.g. Nebula Grid:

http://www.eclipse.org/nebula/widgets/grid/grid.php

(Take a look at the examples)

or maybe even better NatTable:

http://eclipse.org/nattable/

- Daniel
Re: multiple column table header [message #901925 is a reply to message #901923] Wed, 15 August 2012 02:39 Go to previous message
Martin Jacob is currently offline Martin Jacob
Messages: 116
Registered: July 2009
Senior Member
Thanks Daniel, I just had a look at the websites and it looks very good. Will try it!

Daniel Krügler wrote, On 15.08.2012 07:42:
> On 2012-08-15 00:44, Martin Jacob wrote:
>> how can I define a Table or TableView with a multiple column header? I
>> found some thing for JTable
>> (http://www.crionics.com/public/swing_examples/JTableExamples1.html) but
>> I think it wont work in Eclipse.
>
> You are right, SWT Table cannot represent multiple column headers.
>
>> any idea how to implement this? Any hints would be appreciated, Martin
>
> I suggest to consider to use more capable Table framework, e.g. Nebula Grid:
>
> http://www.eclipse.org/nebula/widgets/grid/grid.php
>
> (Take a look at the examples)
>
> or maybe even better NatTable:
>
> http://eclipse.org/nattable/
>
> - Daniel
>
>
Previous Topic:Error when adding rcp-sdk as target platform
Next Topic:Common Navigator Framework
Goto Forum:
  


Current Time: Thu Aug 21 06:18:17 EDT 2014

Powered by FUDForum. Page generated in 0.01894 seconds