質問

付け加えておきたいの異なるスタイルの異なる行であるのか。

ようにしているこズでは、エラーが変わります):

  • 二つのインターフェイス:

公開インタフェースStatiscticsTableResources extends ClientBundle{

public static final StatiscticsTableResources INSTANCE = GWT.create(StatiscticsTableResources.class);

@Source("StatisticsTableCss.css")
StatisticsTableCss css();

}

公開インタフェースStatisticsTableCss extends CssResource{

String tableOddRow();

}

  • CSS

.tableOddRow{ background-color:#aeaaa2;カラー:青;}

  • APLLYINGのスタイル

ftStatistics.getRowFormatter().addStyleName(i,StatiscticsTableResources.インスタンス.css().tableOddRow());

役に立ちましたか?

解決

思い忘れた注入のスタイルシートです。どこかでトップクラスの場所のスタイルに追加します:

static { StatisticsTableResources.INSTANCE.css().ensureInjected(); }
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top