on 07-18-2005 2:26 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Prakash, its just what I´ve been looking for, I´ll test it as soon as possible.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.