我在表第一栏中添加了图标;但滚动表格时,图标也会显示其他列。
代码:
private Object getColumnValueForPhysicalBOMHistory(BOMLinkMO value, int column) {
switch (column) {
case 0:
// ProtomAbbreviation.CHANGE_ACTIVITY,
String textvalue = "";
Icon editicon = editIcon;
if (uiViewModeState == UIViewModeState.PREVIEW && value.getDiffType() != ItemDiffType.NONE) {
// +, -. /
textvalue = value.getDiffType().toVisibleString();
return new SimpleProtomTable.TextIconValue(textvalue, editicon);
} else {
textvalue = value.getTypeOfModification(deliveryDate);
return new SimpleProtomTable.TextIconValue(textvalue, editicon);
}
case 1:
// ProtomAbbreviation.BOM_CR_ID,
if (value.getDTO().getCrId() != null && !"".equals(value.getDTO().getCrId())) {
return value.gettest();
} else {
return "";
}