Skip to main content



      Home
Home » Eclipse Projects » NatTable » Highlight filtered text(Highlight filtered text)
Highlight filtered text [message #1099970] Mon, 02 September 2013 09:13 Go to next message
Eclipse UserFriend
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 13:17 Go to previous messageGo to next message
Eclipse UserFriend
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 04:13 Go to previous messageGo to next message
Eclipse UserFriend
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 04:26 Go to previous message
Eclipse UserFriend
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 Jul 25 12:19:00 EDT 2025

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

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

Back to the top