how to display only a part of the text in a row?

Hi guys,

how can i display in table only a part of the text in that cell,
for example the cell has a loong text, i want only the first 5 words to display,

i dont want to wrap word (i know how to do that in css etc.)
i want if the text has more than 4-5 words or more than 30 characters the row to display only those few words.
I hope i made myself understood.


You can do that with table.addGeneratedColumn, or even with a cellrenderer.
Examples in the book ( ) or :