Hi,
I want to add different styles to different rows, Which is the best way?
I'm trying this (it doesnt works, no error but no changes):
- TWO INTERFACES:
public interface StatiscticsTableResources extends ClientBundle {
public static final StatiscticsTableResources INSTANCE = GWT.create(StatiscticsTableResources.class);
@Source("StatisticsTableCss.css")
StatisticsTableCss css();
}
public interface StatisticsTableCss extends CssResource {
String tableOddRow();
}
- THE CSS
.tableOddRow { background-color: #aeaaa2; color: blue; }
- APLLYING THE STYLE
ftStatistics.getRowFormatter().addStyleName(i, StatiscticsTableResources.INSTANCE.css().tableOddRow());