is it possible to change the colour of text in Gwt Widgets..
For example, say I have a TreeGrid, with TreeGridFields.
Can I change the colour that is rendered when printing the items in the Tree?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not necessarily the correct way to do it but I just wrap the items with
<font color='COLOR'>itemHere</font>and that works just fine. I’ve found working with css in SmartGWT to be a bit of a pain.You can also override
protected String getCellCSSText(ListGridRecord record, int rowNum, int colNum)within the TreeGrid and return a css string for the font depending on the value of the record.