com.jidesoft.grid
Interface ToolTipSupport
public interface ToolTipSupport
This is an interface that can be implemented on a table model. If you use JideTable or its subclasses and you does
use the default table header created by those tables, the tooltip returned from getToolTipText(int)
method
will be used as the table header tooltip. If you have to use your own TableHeader, make sure you override
getToolTipText(MouseEvent) method and call JideTable's getTableHeaderToolTipText(MouseEvent) method.
public String getToolTipText(MouseEvent event) {
String toolTipText = getTableHeaderToolTipText(event);
if(toolTipText != null) {
return toolTipText;
}
else {
return super.getToolTipText(event);
}
}
getToolTipText
String getToolTipText(int columnIndex)
- Gets the tooltip for the column. It will be displayed as tooltip for the table header.
- Parameters:
columnIndex
- the column index.
- Returns:
- the tooltip for the column.