leszek
unread,Jul 2, 2009, 1:48:56 PM7/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
I'm trying to utilize
com.google.gwt.visualization.client.visualizations.Table and I have a
code like that:
-----------------
private class MyHandler extends SelectHandler
@Override
public void onSelect(SelectEvent event) {
JsArray<Selection> sel = ta.getSelections();
Selection se = null;
for (int i = 0; i < sel.length(); i++) {
se = sel.get(i);
.......
}
.....
}
}
Table ta = new Table(getTable(), Table.Options.create());
ta.addSelectHandler(new MyHandler());
--------------------------
It works for me. But the question is:
Is it possible to have absolute position of the cell (row) which
causes this click-event ?
If using standard GWT FlexTable I can retrievie this information by:
FlexTable ta;
public void onCellClicked(SourcesTableEvents sender, int row,
int cell) {
Widget w = ta. getWidget(row,cell);
w. getAbsoluteLeft();
w.getAbsoluteTop();
........
}