Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Position of a TableColumn
Position of a TableColumn [message #439737] Thu, 15 July 2004 15:02 Go to next message
Ole Laurisch is currently offline Ole LaurischFriend
Messages: 34
Registered: July 2009
Member
Hi all,

[short version:]
is it possible to get the position of a TableColumn in a TableViewer?

[longer version:]
I have a TableViewer with a Table and some TableColumns. With the more or
less known bug fix I added the possibility to drag and drop TableColumns to
my TableViewer. Therefor I am able to change the position of the columns.
Now I want to store the user configuration of the TableViewer (size, width
of the columns and position of the columns) and therefor have to know the
position of a TableColumn. First I had a look at the Table object, but the
position of the columns didn't change in it when dragging a column.

Do you know any other possibility to get the position of a TableColumn. Is
there maybe is chance to ask the TableViewer for it?

Any hints would be greatly appreciated!

Thanks id advance,

Ole Laurisch
Re: Position of a TableColumn [message #439912 is a reply to message #439737] Mon, 19 July 2004 14:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cfarra.heiler.com

Ole Laurisch wrote:

> Hi all,

> [short version:]
> is it possible to get the position of a TableColumn in a TableViewer?

> [longer version:]
> I have a TableViewer with a Table and some TableColumns. With the more or
> less known bug fix I added the possibility to drag and drop TableColumns to
> my TableViewer. Therefor I am able to change the position of the columns.
> Now I want to store the user configuration of the TableViewer (size, width
> of the columns and position of the columns) and therefor have to know the
> position of a TableColumn. First I had a look at the Table object, but the
> position of the columns didn't change in it when dragging a column.

> Do you know any other possibility to get the position of a TableColumn. Is
> there maybe is chance to ask the TableViewer for it?

> Any hints would be greatly appreciated!

> Thanks id advance,

> Ole Laurisch


Hmm perhaps you can create a map which know the current Position of the
Columns! When you drag the first column to the second they both have
changed their position! So you can add to your map under the key for
example "column1" = Column2 and "column2" = Column1


Just an idea
Re: Position of a TableColumn [message #439987 is a reply to message #439912] Tue, 20 July 2004 07:33 Go to previous message
Ole Laurisch is currently offline Ole LaurischFriend
Messages: 34
Registered: July 2009
Member
"Christian Farra" <cfarra@heiler.com> wrote:

> > First I had a look at the Table object, but the
> > position of the columns didn't change in it when dragging a column.
>
> Hmm perhaps you can create a map which know the current Position of the
> Columns! When you drag the first column to the second they both have
> changed their position! So you can add to your map under the key for
> example "column1" = Column2 and "column2" = Column1

Funny thing! The same idea came to my mind yesterday. But there is still one
problem then. When I drag and drop a column how should I know where the new
position of the dropped table is. As I said before, I cannot ask the table
object for the position as it doesn't recognize the re-positioning.

Or does anybody know a way to find out at which position a TableColumn is
dropped? Maybe with the Drag- and DropListeners?

Any help would be much appreciated!

Ole
Previous Topic:Size of Text widgets
Next Topic:example of tabletreeviewer
Goto Forum:
  


Current Time: Wed Sep 25 13:32:07 GMT 2024

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

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

Back to the top