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.
Thanks.

Hello,

You can do that with table.addGeneratedColumn, or even with a cellrenderer.
Examples in the book ( https://vaadin.com/book/-/page/components.table.html ) or :

http://dev.vaadin.com/svn/versions/6.2/demo/src/com/vaadin/demo/featurebrowser/GeneratedColumnExample.java
https://dev.vaadin.com/svn/doc/book-examples/trunk/src/com/vaadin/book/examples/component/TableExample.java

Regards