cancel
Showing results for 
Search instead for 
Did you mean: 

TableView cell class

Former Member
0 Kudos

Hi :

I want to change the actual style class of the header cells of a TableView to the urSTbvColHdrLvl1Std class, using java code.

My java code is generating this :



I want to obtain the following in my TableView :

Descripción del documento

Descripción del documento

How can I do it?

Thanks in advance for your help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rafael,

Are you talking about column headers? If you are then you could do the following.

1.

TableView tv = new TableView("myTableView");
         tv.getColumn(1).setEncode(false);

2. You then pass the header text in model with html tags.

Example:

String[][] data = createData();
String[] colNames = {"<span class="urSTbvColHdrLvl1Std">LASTNAME</span>", "FIRSTNAME", "STREET", "ZIP", "CITY"};
model = new DefaultTableViewModel(data, colNames);

PS: Please reward points for helpful answer or problem resolved.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you Prakash, its just what I´ve been looking for, I´ll test it as soon as possible.

Regards