I am attaching the following hanlder to a prepopulated table which
update the rows in antother scrolltable. While testing multiple
selection using Shift+[left mouse click] then the correct indexes for
the selected rows is returned by source.getSelectedRows(); BUT a
truncated number of rows is returned via the Iterator where the first
selected row is missing. Is this the correct behaviour?
dataTable.addRowSelectionHandler(new RowSelectionHandler() {
@Override
public void onRowSelection(RowSelectionEvent event) {
FixedWidthGrid source = (FixedWidthGrid)
event.getSource();
Set<Integer> sourceRows =
source.getSelectedRows();
Iterator<Row> iterator =
event.getSelectedRows().iterator();
int rows = 0;
while (iterator.hasNext()) {
Row row = iterator.next();
scrollTable.getDataTable().resize(rows++, 5);
insertRowsIntoScrollTable(row.getRowIndex());
}
}
});
----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---