I need to wrap the text of the column. My column size is small. So if i set column width some of the letters are not visible. Since the length of the text is bigger than the column size. If there is a space in the text then it wraps itself. So I need to wrap the text.
For example, emailColumn it's value is [email protected].
I expect the result as xxxxxxxxxxx@x in the first line and xxxx.xom in the next line.
Is it possible?
I tried wrap text inside cell table, we can achieve this by creating custom column.
Create one abstract cell column for cell table,append html contant in that cell and add column to cell table like this.
Add this code in your main java file, which contains cell table and paste below code in neccessary place.
Create new java file named like 'WrapDetails.java' for render dynamic data and paste below code.
Create new java file for wrap text column with named 'WrappedColumn.java' and paste below code.
Create new java file named as 'WrapDetailsColumnCell.java' and paste below code.
It is working for me well. After tried this, let me know any issue if you get. Have a fun.