Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Hyperlinks in cells
Hyperlinks in cells [message #1018737] Thu, 14 March 2013 11:42 Go to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Hi,

I want to have text as hyperlink in some cells of my nattable. How can I achieve this?

Thanks,
Karishma.
Re: Hyperlinks in cells [message #1018761 is a reply to message #1018737] Thu, 14 March 2013 12:28 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Well I think you will have to register a selection listener to that cells.
Re: Hyperlinks in cells [message #1018798 is a reply to message #1018761] Thu, 14 March 2013 13:38 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
And how can we get the look and feel of a hyperlink? I mean to say that the hyperlinks are underlined. Is there a way to do this?
Re: Hyperlinks in cells [message #1018838 is a reply to message #1018798] Thu, 14 March 2013 14:58 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Ah, yes this is possible in NatTable. Smile

At least with the current master. Not sure if at least the first part is already available with 0.9.0. It will come with 1.0.0. But if you are working with a local source copy, you can find the how to here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=382859
https://bugs.eclipse.org/bugs/show_bug.cgi?id=391899

Greez,
Dirk
Re: Hyperlinks in cells [message #1020421 is a reply to message #1018838] Mon, 18 March 2013 06:07 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Can you please tell me how can I register a selection listener to the cells ?

[Updated on: Mon, 18 March 2013 06:08]

Report message to a moderator

Re: Hyperlinks in cells [message #1020446 is a reply to message #1020421] Mon, 18 March 2013 07:39 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Actually I added the selection listener to the cell.But the problem is that the cell has got two painters- checkBoxPainter and TextPainter.I want the link to appear only when I click on the text not otherwise. Any suggestions?
Re: Hyperlinks in cells [message #1020472 is a reply to message #1020446] Mon, 18 March 2013 08:55 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
I think then you need to register a CellPainterMatcher then. Like the one for the CheckBoxCellEditor for example
Re: Hyperlinks in cells [message #1404547 is a reply to message #1020446] Mon, 04 August 2014 05:31 Go to previous message
Shruthi SA is currently offline Shruthi SAFriend
Messages: 3
Registered: February 2014
Junior Member
Hi Karishma,

Any luck in Hyperlink topic?
Am also looking out for the same.

If you are through, can you post the snippet?

Thanks & Regards,
Shruthi
Previous Topic:How to uncheck CheckBoxCellEditor?
Next Topic:Bug in CellPainterDecorator
Goto Forum:
  


Current Time: Fri Mar 29 14:05:12 GMT 2024

Powered by FUDForum. Page generated in 0.03034 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top