[MCFrame]允許單元格輸入負數

TableCell配置重寫getCustomMinusEnable方法。

public class CsvTableCellConfig extends SXP_CellConfig {

    @Override
    protected Boolean getCustomMinusEnable(int index, MCColumnConfig column, MCTable<?> table) {
        if (column == columnCsv_inst_qty) {
            return true;
        }
        return super.getCustomMinusEnable(index, column, table);
   }            
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章