** datagrid上的工具提示列只是将此代码放在构造函数**
中T = model class;
dataGrid.addCellPreviewHandler(new CellPreviewEvent.Handler<T>() {
@Override
public void onCellPreview(final CellPreviewEvent<T> event) {
if ("mouseover".equals(event.getNativeEvent().getType())) {
String str = "";
Element cellElement = event.getNativeEvent()
.getEventTarget().cast();
int row = event.getIndex();
int col = event.getColumn();
T model = (T) dataGrid
.getVisibleItem(row);
str = "" + dataGrid.getColumn(col).getValue(model);
cellElement.setTitle(str);
}
}
});