I'm new to GWT and GWT Designer, so perhaps I'm just missing something here. I have a tree that displays multiple parent and child nodes. I'm trying to use style sheets to make the lowest-level child nodes appear differently in the tree. To accomplish this, I created a custom style sheet using the CSS Style Selection dialog (e.g. .gwt-myCustomStyle).
When the code runs, the default CSS (.gwt-Tree .gwt-TreeItem) is used up until I populate the lowest-level TreeItems, at which point I use setStyleName to apply the custom style for that particular item.
My problem is, it's not working. No matter what I do, the TreeItems seem to use only the default CSS, and ignore my commands to use my own custom CSS. As I said, my need is to have different levels formatted differently. Can this be done? If so, what am I doing wrong?
Thanks in advance.