Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Columns in TableView
Columns in TableView [message #459774] Tue, 16 August 2005 11:36 Go to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
Hi all!!!

I have a TableViewer with 2 columns, for example, "name" and "value".
I want the columns to fill all the space of the viewer. I'll try to
explain what I mean

Viewer should have a row of column headers like "name" | "value" |
"name" | "value" .. (k times) .. "name" | "value" . "k" will depend on
the viewer width and each column will continue tne previous one.

Has Table Viewer properties or something else that allow to do that?

Igor S. Zamyatin
JSC Interstron
http://www.interstron.ru
Re: Columns in TableView [message #459779 is a reply to message #459774] Tue, 16 August 2005 14:15 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Igor,

Assuming that I understand your question correctly, no, table items can only
flow top-to-bottom.

If you are in a read-only context then you could fake this by, for example,
showing 4 name/value pairs per TableItem (so for TableItem 0, name/value
pair 0 would occupy columns 0 and 1, name/value pair 1 would occupy columns
2 and 3, etc). However this would not make sense if your user can select
items in the table, since selection is on a per-TableItem basis, not
per-cell.

Grant

"Igor S. Zamyatin" <isz@interstron.ru> wrote in message
news:c7784e62cab1dcf5b9aaaadf6c8100b7$1@www.eclipse.org...
>
> Hi all!!!
>
> I have a TableViewer with 2 columns, for example, "name" and "value".
> I want the columns to fill all the space of the viewer. I'll try to
> explain what I mean
>
> Viewer should have a row of column headers like "name" | "value" |
> "name" | "value" .. (k times) .. "name" | "value" . "k" will depend on
> the viewer width and each column will continue tne previous one.
>
> Has Table Viewer properties or something else that allow to do that?
>
> Igor S. Zamyatin
> JSC Interstron
> http://www.interstron.ru
>
Re: Columns in TableView [message #459850 is a reply to message #459779] Thu, 18 August 2005 11:31 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
Thanks for the answer!

Am I correct, that there is no chance to have a table with "left-to-right
flow control"?
Re: Columns in TableView [message #459852 is a reply to message #459850] Thu, 18 August 2005 13:43 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
yes that's correct

"Igor S. Zamyatin" <isz@interstron.ru> wrote in message
news:9325f1d471ad0aa04850357d2cea61dd$1@www.eclipse.org...
> Thanks for the answer!
>
> Am I correct, that there is no chance to have a table with "left-to-right
> flow control"?
>
>
>
Previous Topic:DialogCellEditor text problem
Next Topic:Browser and BusyIndicator
Goto Forum:
  


Current Time: Wed Apr 24 23:04:34 GMT 2024

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

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

Back to the top