|
|
|
@ -36,6 +36,8 @@ public class ColumnSelectedEditor extends Editor<SimpleDSColumn> {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
|
TableDataWrapper tableDataWrapper = tableDataComboBox.getSelectedItem(); |
|
|
|
|
if (tableDataWrapper != null) { |
|
|
|
|
//这边需要重新初始化columnNames, 否则nameList长度和columnNames长度不同导致出錯。
|
|
|
|
|
List<String> nameList = tableDataComboBox.getSelectedItem().calculateColumnNameList(); |
|
|
|
|
columnNames = new String[nameList.size()]; |
|
|
|
@ -46,6 +48,7 @@ public class ColumnSelectedEditor extends Editor<SimpleDSColumn> {
|
|
|
|
|
} |
|
|
|
|
columnNameComboBox.validate(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
columnNameComboBox = new UIComboBox(); |
|
|
|
|
tableDataComboBox.setPreferredSize(new Dimension(82, 20)); |
|
|
|
|