uibinder flextable نمط
سؤال
أريد إضافة أنماط مختلفة إلى صفوف مختلفة ، ما هي أفضل طريقة؟
أحاول هذا (لا يعمل ، لا خطأ ولكن لا تغييرات):
- واجهتان:
الواجهة العامة statiScticStableresources يمتد ClientBundle {
public static final StatiscticsTableResources INSTANCE = GWT.create(StatiscticsTableResources.class);
@Source("StatisticsTableCss.css")
StatisticsTableCss css();
}
يمتد إحصائيات الواجهة العامة CSSResource {
String tableOddRow();
}
- CSS
.tableoddrow {background-color: #aeaaa2 ؛ لون أزرق؛ }
- تسليط النمط
ftStatistics.getRowformatter (). addstylename (I ، StatiscticStableresources.instance.css (). tableoddrow ()) ؛
المحلول
تخمين برية ، لقد نسيت حقن ورقة الأنماط. في مكان ما في الجزء العلوي من الفصل حيث تقوم بتطبيق النمط ، أضف هذا السطر:
static { StatisticsTableResources.INSTANCE.css().ensureInjected(); }
لا تنتمي إلى StackOverflow