Tree item caption, wrap text

Hi Folks. How can I enable text wrap in Tree item captions? I’ve found an answer in this forum, but it haves 7 years and dont work with vaadin 7.4 :(.

Any help appreciated!