Skip to main content

Displaying full content of cropped table cells on mouseOver

2 replies [Last post]
uvoigt
Offline
Joined: 2006-01-26
Points: 0

Sometimes the content of table cells exceeds the table cell size. The rendered label usually marks this with '...' at the end of the text.
I want to implement a feature that the full content of the table cell is displayed (e.g. as tooltip) in case the mouse moves over a cropped cell. I think I remember I have seen such a feature but I cannot find it.
1. Has anyone tried to implement such a feature? What about your experiences?
2. Do you know any link to a site where someone tried this?
3. Any hints for the implementation?
Thanks!
Uli

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08
Points: 0

Uli,
You should be able to use:
new ToolTipHighlighter(HighlightPredicate.IS_TEXT_TRUNCATED)
Karl

uvoigt
Offline
Joined: 2006-01-26
Points: 0

Wow, that's easy!
Thanks!
Uli