Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Columns in TableView
Columns in TableView [message #459774] Tue, 16 August 2005 07:36 Go to next message
Eclipse UserFriend
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 10:15 Go to previous messageGo to next message
Eclipse UserFriend
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 07:31 Go to previous messageGo to next message
Eclipse UserFriend
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 09:43 Go to previous message
Eclipse UserFriend
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: Mon Jul 28 16:40:13 EDT 2025

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

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

Back to the top