if (rowDescription != null && !rowDescription.equals("")) {
TooltipInfo info = new TooltipInfo(rowDescription);
client.registerTooltip(VScrollTable.this, rowElement, info);
+ } else {
+ // Remove possibly previously set tooltip
+ client.registerTooltip(VScrollTable.this, rowElement, null);
}
tHead.getColumnAlignments();
}
}
- if (description != null && client != null) {
+ if (description != null && !description.equals("")) {
TooltipInfo info = new TooltipInfo(description);
client.registerTooltip(VScrollTable.this, td, info);
+ } else {
+ // Remove possibly previously set tooltip
+ client.registerTooltip(VScrollTable.this, td, null);
}
td.appendChild(container);
import com.vaadin.terminal.gwt.client.MouseEventDetails;
import com.vaadin.terminal.gwt.client.ui.VScrollTable;
import com.vaadin.terminal.gwt.client.ui.dd.VLazyInitItemIdentifiers;
-import com.vaadin.ui.AbstractSelect.ItemDescriptionGenerator;
/**
* <p>
* The generator to use or null to disable
*/
public void setItemDescriptionGenerator(ItemDescriptionGenerator generator){
- itemDescriptionGenerator = generator;
+ if (generator != itemDescriptionGenerator) {
+ itemDescriptionGenerator = generator;
+ refreshRenderedCells();
+ }
}
/**