public static TableColumn createInsertTableColumn(Table tableModel, TConstant column, int columnIndex) { if (ModelBindingManager.getInsertModel(column) is TableColumn) { return((TableColumn)ModelBindingManager.getInsertModel(column)); } TableColumn columnModel = new TableColumn(tableModel, column, columnIndex); ModelBindingManager.bindInsertModel(column, columnModel); return(columnModel); }
public static TableColumn createInsertTableColumn(Table tableModel, TObjectName column) { if (ModelBindingManager.getInsertModel(column) is TableColumn) { return((TableColumn)ModelBindingManager.getInsertModel(column)); } TableColumn columnModel = new TableColumn(tableModel, column); ModelBindingManager.bindInsertModel(column, columnModel); return(columnModel); }