Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid: How can I find out if the row or column is selected?
Grid: How can I find out if the row or column is selected? [message #41336] Wed, 24 October 2007 10:17 Go to next message
Defert Philippe is currently offline Defert PhilippeFriend
Messages: 62
Registered: July 2009
Member
Hi Grid team,

How can I tell the difference between a full selection of the line
through the rowheader and selection of all the individual cells?

In my application, I want to have different behavior depending on the
method of selection of a line. Same for a column.

Best regards

Philippe
Re: Grid: How can I find out if the row or column is selected? [message #41542 is a reply to message #41336] Wed, 24 October 2007 15:23 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Philippe,

Currently when in cell selection mode there is no difference. In fact,
there is only the selected cells when in cell selection.

Regards,
-Chris

Defert Philippe wrote:
> Hi Grid team,
>
> How can I tell the difference between a full selection of the line
> through the rowheader and selection of all the individual cells?
>
> In my application, I want to have different behavior depending on the
> method of selection of a line. Same for a column.
>
> Best regards
>
> Philippe
Re: Grid: How can I find out if the row or column is selected? [message #41812 is a reply to message #41542] Thu, 25 October 2007 10:12 Go to previous messageGo to next message
Defert Philippe is currently offline Defert PhilippeFriend
Messages: 62
Registered: July 2009
Member
Hi Chris,

i m agree with you about cell selection but if you want know the
selection method (individual or row) , you don't have any method to do
this.

i add a short getter on Grid class to do this

/**
* @return true if the selection is doing by a row selection
*/
public boolean isCellRowSelected() {
return cellRowSelectedOnLastMouseDown;
}

What do you think about this?

Regards

Philippe

Chris Gross a écrit :
> Hi Philippe,
>
> Currently when in cell selection mode there is no difference. In fact,
> there is only the selected cells when in cell selection.
>
> Regards,
> -Chris
>
> Defert Philippe wrote:
>> Hi Grid team,
>>
>> How can I tell the difference between a full selection of the line
>> through the rowheader and selection of all the individual cells?
>>
>> In my application, I want to have different behavior depending on the
>> method of selection of a line. Same for a column.
>>
>> Best regards
>>
>> Philippe
Re: Grid: How can I find out if the row or column is selected? [message #42027 is a reply to message #41812] Thu, 25 October 2007 14:36 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
I'm not sure what exactly that method is saying. Only that the last
click by the user caused all cells in a row to be selected? That
doesn't seem to be sufficient for a variety of reasons.

-Chris

Defert Philippe wrote:
> Hi Chris,
>
> i m agree with you about cell selection but if you want know the
> selection method (individual or row) , you don't have any method to do
> this.
>
> i add a short getter on Grid class to do this
>
> /**
> * @return true if the selection is doing by a row selection
> */
> public boolean isCellRowSelected() {
> return cellRowSelectedOnLastMouseDown;
> }
>
> What do you think about this?
>
> Regards
>
> Philippe
>
> Chris Gross a écrit :
>> Hi Philippe,
>>
>> Currently when in cell selection mode there is no difference. In fact,
>> there is only the selected cells when in cell selection.
>>
>> Regards,
>> -Chris
>>
>> Defert Philippe wrote:
>>> Hi Grid team,
>>>
>>> How can I tell the difference between a full selection of the line
>>> through the rowheader and selection of all the individual cells?
>>>
>>> In my application, I want to have different behavior depending on the
>>> method of selection of a line. Same for a column.
>>>
>>> Best regards
>>>
>>> Philippe
Re: Grid: How can I find out if the row or column is selected? [message #585532 is a reply to message #41336] Wed, 24 October 2007 15:23 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Hi Philippe,

Currently when in cell selection mode there is no difference. In fact,
there is only the selected cells when in cell selection.

Regards,
-Chris

Defert Philippe wrote:
> Hi Grid team,
>
> How can I tell the difference between a full selection of the line
> through the rowheader and selection of all the individual cells?
>
> In my application, I want to have different behavior depending on the
> method of selection of a line. Same for a column.
>
> Best regards
>
> Philippe
Re: Grid: How can I find out if the row or column is selected? [message #585666 is a reply to message #41542] Thu, 25 October 2007 10:12 Go to previous message
Defert Philippe is currently offline Defert PhilippeFriend
Messages: 62
Registered: July 2009
Member
Hi Chris,

i m agree with you about cell selection but if you want know the
selection method (individual or row) , you don't have any method to do
this.

i add a short getter on Grid class to do this

/**
* @return true if the selection is doing by a row selection
*/
public boolean isCellRowSelected() {
return cellRowSelectedOnLastMouseDown;
}

What do you think about this?

Regards

Philippe

Chris Gross a écrit :
> Hi Philippe,
>
> Currently when in cell selection mode there is no difference. In fact,
> there is only the selected cells when in cell selection.
>
> Regards,
> -Chris
>
> Defert Philippe wrote:
>> Hi Grid team,
>>
>> How can I tell the difference between a full selection of the line
>> through the rowheader and selection of all the individual cells?
>>
>> In my application, I want to have different behavior depending on the
>> method of selection of a line. Same for a column.
>>
>> Best regards
>>
>> Philippe
Re: Grid: How can I find out if the row or column is selected? [message #585772 is a reply to message #41812] Thu, 25 October 2007 14:36 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
I'm not sure what exactly that method is saying. Only that the last
click by the user caused all cells in a row to be selected? That
doesn't seem to be sufficient for a variety of reasons.

-Chris

Defert Philippe wrote:
> Hi Chris,
>
> i m agree with you about cell selection but if you want know the
> selection method (individual or row) , you don't have any method to do
> this.
>
> i add a short getter on Grid class to do this
>
> /**
> * @return true if the selection is doing by a row selection
> */
> public boolean isCellRowSelected() {
> return cellRowSelectedOnLastMouseDown;
> }
>
> What do you think about this?
>
> Regards
>
> Philippe
>
> Chris Gross a écrit :
>> Hi Philippe,
>>
>> Currently when in cell selection mode there is no difference. In fact,
>> there is only the selected cells when in cell selection.
>>
>> Regards,
>> -Chris
>>
>> Defert Philippe wrote:
>>> Hi Grid team,
>>>
>>> How can I tell the difference between a full selection of the line
>>> through the rowheader and selection of all the individual cells?
>>>
>>> In my application, I want to have different behavior depending on the
>>> method of selection of a line. Same for a column.
>>>
>>> Best regards
>>>
>>> Philippe
Previous Topic:Set Text for a Header in Grid
Next Topic:Grid Widget refresh Problem
Goto Forum:
  


Current Time: Tue Apr 16 07:46:22 GMT 2024

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

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

Back to the top