Skip to main content



      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 06:17 Go to next message
Eclipse UserFriend
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 11:23 Go to previous messageGo to next message
Eclipse UserFriend
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 06:12 Go to previous messageGo to next message
Eclipse UserFriend
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 10:36 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 12:15:13 EDT 2025

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

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

Back to the top