Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridViewer and multicolumn text
GridViewer and multicolumn text [message #45219] Thu, 03 January 2008 19:42 Go to next message
Lei is currently offline LeiFriend
Messages: 23
Registered: July 2009
Junior Member
does the GridViewer support text spanning multiple columns. i understand
that i can achieve it using the Grid.

thanks.
Re: GridViewer and multicolumn text [message #45313 is a reply to message #45219] Fri, 04 January 2008 21:02 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
See GridItem#setColumnSpan.

Lei wrote:
> does the GridViewer support text spanning multiple columns. i understand
> that i can achieve it using the Grid.
>
> thanks.
Re: GridViewer and multicolumn text [message #46046 is a reply to message #45313] Wed, 09 January 2008 18:59 Go to previous messageGo to next message
Lei is currently offline LeiFriend
Messages: 23
Registered: July 2009
Junior Member
GridItem is part of Grid widget. i am trying to use GridViewer, is there a
way to achieve the similar effect using just the jface viewer classes?
thanks.
Re: GridViewer and multicolumn text [message #46075 is a reply to message #46046] Wed, 09 January 2008 19:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6649
Registered: July 2009
Senior Member
Hm you can get access to the GridItem in JFace when you overload
CellLabelProvider#updateCell(ViewerCell) you can access the item using
ViewerCell#getItem().

We could think about a dedicated GridViewerColumnLabelProvider to make
this more easy?

Tom

Lei schrieb:
> GridItem is part of Grid widget. i am trying to use GridViewer, is there
> a way to achieve the similar effect using just the jface viewer classes?
> thanks.


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer and multicolumn text [message #46104 is a reply to message #46075] Wed, 09 January 2008 19:16 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6649
Registered: July 2009
Senior Member
Tom Schindl schrieb:
> Hm you can get access to the GridItem in JFace when you overload
> CellLabelProvider#updateCell(ViewerCell) you can access the item using

Sorry the method is named CellLabelProvider#update(ViewerCell).

Tom

--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer and multicolumn text [message #587143 is a reply to message #45219] Fri, 04 January 2008 21:02 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
See GridItem#setColumnSpan.

Lei wrote:
> does the GridViewer support text spanning multiple columns. i understand
> that i can achieve it using the Grid.
>
> thanks.
Re: GridViewer and multicolumn text [message #587462 is a reply to message #45313] Wed, 09 January 2008 18:59 Go to previous message
Lei is currently offline LeiFriend
Messages: 23
Registered: July 2009
Junior Member
GridItem is part of Grid widget. i am trying to use GridViewer, is there a
way to achieve the similar effect using just the jface viewer classes?
thanks.
Re: GridViewer and multicolumn text [message #587475 is a reply to message #46046] Wed, 09 January 2008 19:02 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6649
Registered: July 2009
Senior Member
Hm you can get access to the GridItem in JFace when you overload
CellLabelProvider#updateCell(ViewerCell) you can access the item using
ViewerCell#getItem().

We could think about a dedicated GridViewerColumnLabelProvider to make
this more easy?

Tom

Lei schrieb:
> GridItem is part of Grid widget. i am trying to use GridViewer, is there
> a way to achieve the similar effect using just the jface viewer classes?
> thanks.


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer and multicolumn text [message #587486 is a reply to message #46075] Wed, 09 January 2008 19:16 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6649
Registered: July 2009
Senior Member
Tom Schindl schrieb:
> Hm you can get access to the GridItem in JFace when you overload
> CellLabelProvider#updateCell(ViewerCell) you can access the item using

Sorry the method is named CellLabelProvider#update(ViewerCell).

Tom

--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:[Grid] How to set RowHeaderWidth ?
Next Topic:Does setSelection(index) on a grid invoke the selectionListener attached to it?
Goto Forum:
  


Current Time: Sun Dec 04 16:41:11 GMT 2022

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

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

Back to the top