Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Nebula grid - get selected values
Nebula grid - get selected values [message #595852] Fri, 07 August 2009 03:35 Go to next message
Marcel A. is currently offline Marcel A.
Messages: 122
Registered: July 2009
Senior Member
Hello,

i use the nebula grid component to load spreadsheet values.
In some operations i need to get all selected values which can be in one block (as usual) or in many blocks (using control and/or Shift).
If i want to get all values in many blocks (using the Control-key: select one column->pressing Control->select another column)

i get some values twice (the first number in the spread in the next selection block).

i use:

Point[] sel = grid.getCellSelection();

String[] data = new String[sel.length];
for (int i = 0; i < sel.length; i++) {

data[i] = grid.getItem(sel[i].y).getText(sel[i].x);

System.out.println(data[i]);

}



Is this a normal behaviour of nebula grid?

With kind regards

Marcel
Re: Nebula grid - get selected values [message #598337 is a reply to message #595852] Fri, 02 October 2009 04:08 Go to previous messageGo to next message
Marcel A. is currently offline Marcel A.
Messages: 122
Registered: July 2009
Senior Member
I could remove double entries of the selection as a workaround
but is this a bug of the Nebula grid component?

I also want to remove columns from a selection reliable.

Any information is appreciated!
Re: Nebula grid - get selected values [message #598340 is a reply to message #598337] Fri, 02 October 2009 07:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5244
Registered: July 2009
Senior Member
Most likely but I don't have time to work on it :-(

Tom

Marcel schrieb:
> I could remove double entries of the selection as a workaround
> but is this a bug of the Nebula grid component?
>
> I also want to remove columns from a selection reliable.
>
> Any information is appreciated!
>
Re: Nebula grid - get selected values [message #598404 is a reply to message #595852] Mon, 12 October 2009 07:37 Go to previous message
Marcel A. is currently offline Marcel A.
Messages: 122
Registered: July 2009
Senior Member
My workaround for the moment is that i do not permit a selection
(delete selection) if a drag event occurs and the controll key
is pressed. This works so far for my purposes.
Previous Topic:[Grid] cellSelection and rowSelection
Next Topic:Stand alone analog clock from CDateTime?
Goto Forum:
  


Current Time: Fri Jul 25 16:01:48 EDT 2014

Powered by FUDForum. Page generated in 0.02140 seconds