Grid: How can I find out if the row or column is selected? [message #41336] |
Wed, 24 October 2007 06:17  |
Eclipse User |
|
|
|
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 10:36  |
Eclipse User |
|
|
|
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 11:23  |
Eclipse User |
|
|
|
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 06:12  |
Eclipse User |
|
|
|
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 10:36  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04502 seconds