SmartGWT will set the css class for some FormItem by default value if we don't set the class explicitly. For example, a TextItem will look like this:
<input ... class="textItem" ...>
There is a method in SmartGWT which sets a css class for some FormItem explicitly:
textItem.setTextBoxStyle("foo");
BUT this method removes all previous css classes including the default class. Is there a way not to remove but to append (or insert) some custom class to the FormItem? I want to get the following result:
<input ... class="textItem foo" ...> or
SmartGWT will be changing the last css class during the user interaction according to the fired events. So I would insert my custom class before the default class in order to keep the FormItem looking the same:
<input ... class="foo textItem" ...>
<input ... class="foo textItemFocused" ...>
<input ... class="foo textItemDisabled" ...> ect.
Is it possible to do so?