Hi,
I have a list box which will populate values from database. Based on
certain conditions, I need to display each value in appropriate color.
How to change color of text? Here is piece of code that I have.
userNameBox = new ListBox(false);
userNameBox.ensureDebugId("cwListBox-multiBox");
userNameBox.setTitle("UNAME_BOX");
userNameBox.setWidth("11em");
userNameBox.setVisibleItemCount(10);
userNameBox.setStyleName(".gwt-ListBox1");
userNameBox.addItem(-- values from database--);
Thanks
Mani
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---