2013-04-27 62 views
0

在我的GWT應用程序中,我有兩個CellLists。每個都有不同的風格,如下所示:GWT:即使使用不同的css資源,兩個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文件。但是當我發現時,這兩個列表的風格是相同的。這很奇怪,有什麼想法?

回答

0

剛剛發現這個issue 6144,解決方法很簡單,只需使用每個不同的接口名稱,即

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

} 
相關問題