GWT:即使使用不同的css资源,两个单元格列表样式也会重叠

GWT:即使使用不同的css资源,两个单元格列表样式也会重叠,gwt,Gwt,在我的GWT应用程序中,我有两个单元格列表。每个都有不同的样式,如下所示: public interface MyResources extends Resources { /** * The styles used in this widget. */ @Override @Source( "com/example/CellList.css" ) Style cellListStyle(); } MyResources CELLLIS

在我的GWT应用程序中,我有两个单元格列表。每个都有不同的样式,如下所示:

 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 );
公共接口MyResources扩展了资源
{
/**
*此小部件中使用的样式。
*/
@凌驾
@来源(“com/example/cellllist.css”)
Style cellListStyle();
}
MyResources CELLLIST_RESOURCES=GWT.create(MyResources.class);
......
mylist=新手机列表(myCell,手机列表资源);
两个单元格列表都有不同的css文件。但当加载时,我发现两个列表的样式是相同的。这很奇怪,有什么想法吗?

刚刚发现了这一点,解决方案很简单,只需使用不同的接口名称,即

interface TableResources extends CellTable.Resources
{
  @Source({"myCellTable.css"})
  TableStyle cellTableStyle();

}