| [Grid] cellSelection and rowSelection [message #63172] |
Tue, 28 April 2009 16:03  |
Thomas Eichst 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 #490754 is a reply to message #490719] |
Sat, 10 October 2009 03:39  |
Thomas Schindl Messages: 4462 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] |
Tue, 28 April 2009 20:23  |
Thomas Schindl Messages: 4462 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 05:40  |
Thomas Eichst 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 06:20  |
Thomas Schindl Messages: 4462 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 12:04  |
Thomas Eichst 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 12:40  |
Thomas Schindl Messages: 4462 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 14:36  |
Rohit 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 16:33  |
Thomas Schindl Messages: 4462 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 18:04  |
Rohit 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 15:44  |
Eugene 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 03:39  |
Thomas Schindl Messages: 4462 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:
|
|
|
Powered by
FUDForum. Page generated in 0.07004 seconds