Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [Grid] cellSelection and rowSelection
[Grid] cellSelection and rowSelection [message #63172] Tue, 28 April 2009 20:03 Go to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

i'd like to have both:

1. the selected rows should be rendered how it is done when
cellSelectionEnabled is disabled (in my case blue background of the
selected row - macos)
2. the selected cell should be renderd as if cellSelectionEnabled is set
to true.

In other cases i used the FocusCellOwnerDrawHighlighter which couldn't not
be used here, right?

Could you please point me to the right direction?

Cheers,

Thomas E.-E.
Re: [Grid] cellSelection and rowSelection [message #63203 is a reply to message #63172] Wed, 29 April 2009 00:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Thomas Eichstädt-Engelen schrieb:
> Hi,
>
> i'd like to have both:
>
> 1. the selected rows should be rendered how it is done when
> cellSelectionEnabled is disabled (in my case blue background of the
> selected row - macos)
> 2. the selected cell should be renderd as if cellSelectionEnabled is set
> to true.
>
> In other cases i used the FocusCellOwnerDrawHighlighter which couldn't
> not be used here, right?

yes this is right - this is special to SWT/JFace and won't (ever) work
in Grid/Nebula.

But I thought our special internal classes ensure that the cell
selection it restored as needed. I'm not 100% sure what you are aiming at.

Tom
Re: [Grid] cellSelection and rowSelection [message #63229 is a reply to message #63203] Wed, 29 April 2009 09:40 Go to previous messageGo to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

> yes this is right - this is special to SWT/JFace and won't (ever) work
> in Grid/Nebula.

what a pitty ...

> But I thought our special internal classes ensure that the cell
> selection it restored as needed. I'm not 100% sure what you are aiming at.

i am aiming at giving the user (visual) support which row (and ideally
which column - like crosslines) he is traversing/editing at the moment.
Hence our table is very broad and deep one could loose orientation very
quickly. Does this sound reasonable?

Cheers,

Thomas E.-E.
Re: [Grid] cellSelection and rowSelection [message #63253 is a reply to message #63229] Wed, 29 April 2009 10:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

So why don't turn on cell-selection in the grid? JFace has to emulate
this concept whereas CellSelection is "natively" implemented in the Grid
simply by calling setCellSelectionEnabled(true) - or do I don't get your
use case?

Tom

Thomas Eichstädt-Engelen schrieb:
>
>> yes this is right - this is special to SWT/JFace and won't (ever) work
>> in Grid/Nebula.
>
> what a pitty ...
>
>> But I thought our special internal classes ensure that the cell
>> selection it restored as needed. I'm not 100% sure what you are aiming
>> at.
>
> i am aiming at giving the user (visual) support which row (and ideally
> which column - like crosslines) he is traversing/editing at the moment.
> Hence our table is very broad and deep one could loose orientation very
> quickly. Does this sound reasonable?
>
> Cheers,
>
> Thomas E.-E.
>
>
Re: [Grid] cellSelection and rowSelection [message #63301 is a reply to message #63253] Wed, 29 April 2009 16:04 Go to previous messageGo to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

> So why don't turn on cell-selection in the grid? JFace has to emulate
> this concept whereas CellSelection is "natively" implemented in the Grid
> simply by calling setCellSelectionEnabled(true) - or do I don't get your
> use case?

that's what i did. But when i switch setCellSelectionEnabled on, the
selected cell is marked as focused, which is fine. But what i miss in that
case is the marked row (blue background). Ideally i'd like to mark the
corresponding column as well (like crosslines).

I'd like to have "the best out of two worlds" ...

Cheers,

Thomas E.-E.
Re: [Grid] cellSelection and rowSelection [message #63328 is a reply to message #63301] Wed, 29 April 2009 16:40 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000305030501060607070704
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

Ok. You can simply solve this writing your own CellRenderer and setting
it on the Grid-Instance. Attached to this mail you find a modified
version of the default cell-renderer which draws the crosslines :-)

Tom

Thomas Eichst
Re: [Grid] cellSelection and rowSelection [message #490196 is a reply to message #63328] Wed, 07 October 2009 18:36 Go to previous messageGo to next message
Rohit  is currently offline Rohit Friend
Messages: 6
Registered: September 2009
Junior Member
Hi Tom,
Even i needed the feature where cell renderer draws the crosslines. I could not find the attachment from your last reply. Would you please attach the modified version of the default cell-renderer. thank you
Re: [Grid] cellSelection and rowSelection [message #490209 is a reply to message #490196] Wed, 07 October 2009 20:33 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
In my Thunderbird the Java-File is shown attached to the answer.

Tom

Rohit schrieb:
> Hi Tom,
> Even i needed the feature where cell renderer draws the
> crosslines. I could not find the attachment from your last reply. Would
> you please attach the modified version of the default cell-renderer.
> thank you
Re: [Grid] cellSelection and rowSelection [message #490220 is a reply to message #63172] Wed, 07 October 2009 22:04 Go to previous messageGo to next message
Rohit  is currently offline Rohit Friend
Messages: 6
Registered: September 2009
Junior Member
Hi Tom,
Unfortunately the file does not show up in the forum posts. Although it says "This is a multi part message in MIME format " , the attachment is not visible. I tried searching in the forum post using the Safari and Firefox browser but the attachment is not visible.

thanks
Re: [Grid] cellSelection and rowSelection [message #490719 is a reply to message #490209] Fri, 09 October 2009 19:44 Go to previous messageGo to next message
Eugene  is currently offline Eugene Friend
Messages: 25
Registered: July 2009
Junior Member
Hi Tom,

I do not see any place to download the file you claim you can see through Thunderbird. If you can, would you mind explaining how to set up Thunderbird to work with this forum to allow us to download the file. Otherwise, please feel free to upload the document somewhere else; it would be greatly appreciated.

Thanks!

this is what we see: http://www.sfplayers.com/screenShot.jpg
Re: [Grid] cellSelection and rowSelection [message #490754 is a reply to message #490719] Sat, 10 October 2009 07:39 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I sent you a mail to turkov@gmail.com

Tom

Eugene schrieb:
> Hi Tom,
>
> I do not see any place to download the file you claim you can see
> through Thunderbird. If you can, would you mind explaining how to set up
> Thunderbird to work with this forum to allow us to download the file.
> Otherwise, please feel free to upload the document somewhere else; it
> would be greatly appreciated.
>
> Thanks!
>
> this is what we see:
Re: [Grid] cellSelection and rowSelection [message #594620 is a reply to message #63172] Wed, 29 April 2009 00:23 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Thomas Eichstädt-Engelen schrieb:
> Hi,
>
> i'd like to have both:
>
> 1. the selected rows should be rendered how it is done when
> cellSelectionEnabled is disabled (in my case blue background of the
> selected row - macos)
> 2. the selected cell should be renderd as if cellSelectionEnabled is set
> to true.
>
> In other cases i used the FocusCellOwnerDrawHighlighter which couldn't
> not be used here, right?

yes this is right - this is special to SWT/JFace and won't (ever) work
in Grid/Nebula.

But I thought our special internal classes ensure that the cell
selection it restored as needed. I'm not 100% sure what you are aiming at.

Tom
Re: [Grid] cellSelection and rowSelection [message #594630 is a reply to message #63203] Wed, 29 April 2009 09:40 Go to previous message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

> yes this is right - this is special to SWT/JFace and won't (ever) work
> in Grid/Nebula.

what a pitty ...

> But I thought our special internal classes ensure that the cell
> selection it restored as needed. I'm not 100% sure what you are aiming at.

i am aiming at giving the user (visual) support which row (and ideally
which column - like crosslines) he is traversing/editing at the moment.
Hence our table is very broad and deep one could loose orientation very
quickly. Does this sound reasonable?

Cheers,

Thomas E.-E.
Re: [Grid] cellSelection and rowSelection [message #594640 is a reply to message #63229] Wed, 29 April 2009 10:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

So why don't turn on cell-selection in the grid? JFace has to emulate
this concept whereas CellSelection is "natively" implemented in the Grid
simply by calling setCellSelectionEnabled(true) - or do I don't get your
use case?

Tom

Thomas Eichstädt-Engelen schrieb:
>
>> yes this is right - this is special to SWT/JFace and won't (ever) work
>> in Grid/Nebula.
>
> what a pitty ...
>
>> But I thought our special internal classes ensure that the cell
>> selection it restored as needed. I'm not 100% sure what you are aiming
>> at.
>
> i am aiming at giving the user (visual) support which row (and ideally
> which column - like crosslines) he is traversing/editing at the moment.
> Hence our table is very broad and deep one could loose orientation very
> quickly. Does this sound reasonable?
>
> Cheers,
>
> Thomas E.-E.
>
>
Re: [Grid] cellSelection and rowSelection [message #594657 is a reply to message #63253] Wed, 29 April 2009 16:04 Go to previous message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

> So why don't turn on cell-selection in the grid? JFace has to emulate
> this concept whereas CellSelection is "natively" implemented in the Grid
> simply by calling setCellSelectionEnabled(true) - or do I don't get your
> use case?

that's what i did. But when i switch setCellSelectionEnabled on, the
selected cell is marked as focused, which is fine. But what i miss in that
case is the marked row (blue background). Ideally i'd like to mark the
corresponding column as well (like crosslines).

I'd like to have "the best out of two worlds" ...

Cheers,

Thomas E.-E.
Re: [Grid] cellSelection and rowSelection [message #594666 is a reply to message #63301] Wed, 29 April 2009 16:40 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000305030501060607070704
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

Ok. You can simply solve this writing your own CellRenderer and setting
it on the Grid-Instance. Attached to this mail you find a modified
version of the default cell-renderer which draws the crosslines :-)

Tom

Thomas Eichst
Re: [Grid] cellSelection and rowSelection [message #598358 is a reply to message #63328] Wed, 07 October 2009 18:36 Go to previous message
Rohit  is currently offline Rohit Friend
Messages: 6
Registered: September 2009
Junior Member
Hi Tom,
Even i needed the feature where cell renderer draws the crosslines. I could not find the attachment from your last reply. Would you please attach the modified version of the default cell-renderer. thank you
Re: [Grid] cellSelection and rowSelection [message #598362 is a reply to message #490196] Wed, 07 October 2009 20:33 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
In my Thunderbird the Java-File is shown attached to the answer.

Tom

Rohit schrieb:
> Hi Tom,
> Even i needed the feature where cell renderer draws the
> crosslines. I could not find the attachment from your last reply. Would
> you please attach the modified version of the default cell-renderer.
> thank you
Re: [Grid] cellSelection and rowSelection [message #598367 is a reply to message #63172] Wed, 07 October 2009 22:04 Go to previous message
Rohit  is currently offline Rohit Friend
Messages: 6
Registered: September 2009
Junior Member
Hi Tom,
Unfortunately the file does not show up in the forum posts. Although it says "This is a multi part message in MIME format " , the attachment is not visible. I tried searching in the forum post using the Safari and Firefox browser but the attachment is not visible.

thanks
Re: [Grid] cellSelection and rowSelection [message #598393 is a reply to message #490209] Fri, 09 October 2009 19:44 Go to previous message
Eugene  is currently offline Eugene Friend
Messages: 25
Registered: July 2009
Junior Member
Hi Tom,

I do not see any place to download the file you claim you can see through Thunderbird. If you can, would you mind explaining how to set up Thunderbird to work with this forum to allow us to download the file. Otherwise, please feel free to upload the document somewhere else; it would be greatly appreciated.

Thanks!

this is what we see:
Re: [Grid] cellSelection and rowSelection [message #598399 is a reply to message #598393] Sat, 10 October 2009 07:39 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I sent you a mail to turkov@gmail.com

Tom

Eugene schrieb:
> Hi Tom,
>
> I do not see any place to download the file you claim you can see
> through Thunderbird. If you can, would you mind explaining how to set up
> Thunderbird to work with this forum to allow us to download the file.
> Otherwise, please feel free to upload the document somewhere else; it
> would be greatly appreciated.
>
> Thanks!
>
> this is what we see:
Previous Topic:PShelf patch for font color in hovered mode
Next Topic:Nebula grid - get selected values
Goto Forum:
  


Current Time: Thu Apr 18 00:04:25 GMT 2024

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

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

Back to the top