2012-03-09 74 views

回答

6

未经测试,可能有点破解,但您可以尝试覆盖默认样式以返回空白图像。扩展Hilbrand's earlier solution覆盖了CellTable使用ImageResources:

public interface TableResources extends CellTable.Resources { 
    @Source("blank.jpg") 
    ImageResource cellTableSortAscending(); 

    @Source("blank.jpg") 
    ImageResource cellTableSortDescending(); 
} 

创建“blank.jpg”,并把它在相同的资源包的这个接口。

+2

谢谢!按预期工作! 但方法有以下几种: '公共ImageResource cellTableSortAscending();' 和 '公共ImageResource cellTableSortDescending();' 无论如何,感谢您的帮助。 – 2012-03-10 16:00:33

+1

寻找DataGrid(而不是CellTable)的相应解决方案的人:使用方法“public ImageResource dataGridSortAscending();”和“public ImageResource dataGridSortDescending();” – 2017-11-22 10:42:24

-2

getDataGrid()。getColumnSortList()。clear();

删除排序箭头