PFGrid toolkit and widgets for SWT Eclipse

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

Hyperlink-cells for PFGrid.SWT widget

You can add Hyperlinks with default-display (link) very easily. Just add a column of type HyperlinkColumn and cells of type HyperlinkCell.

When hovering the cell with the mouse the Hand-cursor is displayed.

Hyperlink-cells for PFGrid.SWT widget

A HyperlinkCell has a getUrl and setUrl-method. In the Click-Eventhandler of the column you can navigate for example to the url in the browser:

HyperlinkColumn colUrl = new HyperlinkColumn(span2);
colUrl.addCellClickListener( new CellClickListener() {
	public void click(CellEvent event) {
		HyperlinkCell hlCell = (HyperlinkCell) event.getCell();
		String url = hlCell.getUrl();
		try {
            // e.g. Runtime.getRuntime().exec("rundll32 url.dll,
            // FileProtocolHandler " + url);
		} catch (IOException e) {