Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Highlight filtered text(Highlight filtered text)
Highlight filtered text [message #1099970] Mon, 02 September 2013 13:13 Go to next message
Arjan Kok is currently offline Arjan KokFriend
Messages: 40
Registered: July 2009
Member
Hi,

I am new to NatTable, and it works very nice.

However, I could not figure out yet from the documentation the best way how to highlight filtered text.
I have a table with many columns, and each column has a filter. The filtered rows should mark the filtered text.

For example, when a cell contains the value 'Amsterdam' and the filter is 'ster', then the cell should display 'Amsterdam'.

Kind Regards,
Arjan Kok.
Re: Highlight filtered text [message #1100099 is a reply to message #1099970] Mon, 02 September 2013 17:17 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Sorry but the requested feature is not supported by NatTable out of the box.

You would need to implement a custom cell painter like a RichTextPainter or something like that. This would need to be able to interpret tags or other styling information and modify the GC settings on rendering.

And of course you would need to implement some mechanism that adds that information dynamically on filtering. Nothing trivial
Re: Highlight filtered text [message #1100527 is a reply to message #1100099] Tue, 03 September 2013 08:13 Go to previous messageGo to next message
Arjan Kok is currently offline Arjan KokFriend
Messages: 40
Registered: July 2009
Member
Allright fair enough, thanks for your reply.

Anyway, what is the reason the Nattable does not use the StyledCellLabelProvider and TableViewer interfaces?

Kind Regards, Arjan.
Re: Highlight filtered text [message #1100538 is a reply to message #1100527] Tue, 03 September 2013 08:26 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Quote:
what is the reason the Nattable does not use the StyledCellLabelProvider and TableViewer interfaces?


Because NatTable is no Viewer! I tried to explain that with my talks at EclipseCon Europe and W-JAX last year. Here you can find the videos and slides: http://eclipse.org/nattable/documentation.php?page=articles
Previous Topic:BlinkLayer with GroupByDataLayer
Next Topic:Highlight filtered text
Goto Forum:
  


Current Time: Fri Apr 26 04:52:03 GMT 2024

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

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

Back to the top