I worked on this problem for a long time, but I could not solve it. I have a listgrid with a field type icon. I would like to change the cursor to a “hand” above the icon.
I searched the Internet and saw that there are several solutions. One of them uses addCellOverHandlerto list grid. But I do not understand how you can change the cursor for the specified listgrid field.
this.addCellOverHandler(new CellOverHandler() {
@Override
public void onCellOver(CellOverEvent event) {
}
});
My field in listgrid is defined as:
ListGridField iconField = new ListGridField("icon");
iconField.setAlign(Alignment.CENTER);
iconField.setType(ListGridFieldType.ICON);
iconField.setIcon("icons/icon.gif");
As someone pointed to the forum, there is a method setCursor()for listgrid, but not just for the field ...
If anyone has a key ... Thanks
source
share