在我的GWT应用程序中,我有两个celllist。每个都有不同的样式,如下图所示:
public interface MyResources extends Resources
{
/**
* The styles used in this widget.
*/
@Override
@Source( "com/example/CellList.css" )
Style cellListStyle();
}
MyResources CELLLIST_RESOURCES = GWT.create( MyResources.class );
......
mylist=new CellList<MyProxy>( myCell, CELLLIST_RESOURCES );
两个CellLists有不同的css文件。但加载后我发现,这两个列表的风格是一样的。这很奇怪,有什么想法吗?
刚刚发现这个问题6144,解决方法很简单,只是使用不同的接口名称,即
interface TableResources extends CellTable.Resources
{
@Source({"myCellTable.css"})
TableStyle cellTableStyle();
}