This repository was archived by the owner on Aug 5, 2019. It is now read-only.
TooltipCellDecorator does not hide after clicking the decorated button that refreshes list #262
Open
Description
This code :
ButtonCell buttonCell = new ButtonCell(IconType.STAR, ButtonType.INFO, ButtonSize.SMALL);
final TooltipCellDecorator<String> decorator = new TooltipCellDecorator<String>(buttonCell);
decorator.setText("als favoriet markeren");
Column<Template, String> buttonCol = new Column<Template, String>(decorator) {
@Override
public String getValue(Template object) {
return "";
}
};
buttonCol.setFieldUpdater(new FieldUpdater<Template, String>() {
@Override
public void update(int index, Template template, String value) {
template.setFavorite(Boolean.TRUE);
activity.saveTemplate(template);
}
});
When clicking the button, my activity is called which will trigger a refresh of the backing list of the datagrid. the tooltip does not notice this but you can no longer 'mouseout' of the previously rendered button.
I could not easily find a way to hide the tooltip in the FieldUpdater myself either...