CellTable CSS ファイルを私のもの (別のもの) でオーバーライドすると、他のすべての CSS ファイルが消えて、ページ上のスタイルなどが変更されるという問題があります。何が問題なのですか?
オーバーライドする celltable CSS ファイルに (CellTable 以外の) スタイルを追加できますか?
CellTable CSS ファイルを私のもの (別のもの) でオーバーライドすると、他のすべての CSS ファイルが消えて、ページ上のスタイルなどが変更されるという問題があります。何が問題なのですか?
オーバーライドする celltable CSS ファイルに (CellTable 以外の) スタイルを追加できますか?
CellTable's styling works differently than most other widgets in GWT. It uses a ClientBUndle to inject its styling information. This bundle is injected last, so it overrides any styling you may have already done.
Look at the CellTable class' code to see how it extends the ClientBundle with its "Resources" interface and how it then extends that with "BasicResources".
To override this default behavior, I had to:
1. create my own css file with different stying
2. create my own interface that extends CellTable.Resource, much the same way that BasicResource does in CellTable.java
3. instantiate my CellTable object with my resource
If you would like, I can email you some source code.
CSS をオーバーライドするとき、基本スタイルを変更していますか?