PFGrid toolkit and widgets for SWT Eclipse

...Empower your UI with our Winforms and SWT controls!

Tooltips for cells and columns

The PFGrid provides a Listener that fires when elements of the grid are hovered with the mouse. This listener can be used to display each kind of Tooltip you like. Here is an example of using the JFace DefaultToolTip-implementation that shows the text of a cell if it is not fully visible:

Tooltips for PFGrid.SWT Eclipse

The tooltip can also be shown with images and implemented with a few lines of code:

public void hoverElement(HoverElementEvent event) {
	TreeListElement elem = event.getElement();
	if(elem instanceof TreeListCell) {
		TreeListCell cell = (TreeListCell) elem;
		if(cell.isTextCut())
			showTooltip(cell);	
	}
}