[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.nebula] Nebula grid - get selected values
|
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