Skip to main content


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 07:35 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
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 08:08 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
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 11:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 11:37 Go to previous message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
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: Thu Apr 25 08:51:01 GMT 2024

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

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

Back to the top