//holdingTable.setStyleName(style);
//for(int i){
/*
holdingTable.setRowGenerator(generator);
holdingTable.setStyleName(style);
holdingTable.getcolumn;
holdingTable.setCellStyleGenerator(new Table.CellStyleGenerator() {
public String getStyle(Table holdingTable2,Object itemId, Object propertyId) {
// Row style setting, not relevant in this example.
Component cell = holdingTable2.getTableCellRendererComponent(table, value,
isSelected, hasFocus, row, column);
if (propertyId == "bond")
return "red"; // Will not actually be visible
return "green";
}
});*/
//holdingTable.setItemIcon(obj,new ThemeResource("img/redmark3.png") );
//holdingTable.setColumnIcon("bond", new ThemeResource("img/redmark3.png"));//在列的名称中显示
//importTable.setItemIconPropertyId("question");
//importTable.setItemIcon(obj,new ThemeResource("img/redmark3.png") );
本文介绍了如何在表格中设置特定样式的步骤,包括行样式、单元格样式及图标的应用方法。通过示例代码展示了如何为不同的属性设置颜色,并向表格项和列添加图标。
1万+

被折叠的 条评论
为什么被折叠?



