Nebula grid - get selected values [message #595852] |
Fri, 07 August 2009 03:35  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03440 seconds