|
|
|
@ -64,7 +64,7 @@ public class TableDataDictPane extends FurtherBasicBeanPane<TableDataDictionary>
|
|
|
|
|
private ItemListener itemListener; |
|
|
|
|
private UIObserverListener uiObserverListener; |
|
|
|
|
private FormulaEditor localFormulaEditor = new FormulaEditor(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Parameter_Formula")); |
|
|
|
|
private boolean needTableDataChange = false; |
|
|
|
|
private boolean needTableDataChange = true; |
|
|
|
|
|
|
|
|
|
public TableDataDictPane() { |
|
|
|
|
initBasicComponets(); |
|
|
|
@ -95,7 +95,7 @@ public class TableDataDictPane extends FurtherBasicBeanPane<TableDataDictionary>
|
|
|
|
|
tableDataNameComboBox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource()); |
|
|
|
|
tableDataNameComboBox.addItemListener(e -> { |
|
|
|
|
if (e.getStateChange() == ItemEvent.SELECTED) { |
|
|
|
|
tdChange(e, needTableDataChange); |
|
|
|
|
tdChange(e); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// keyColumnPane = ValueEditorPaneFactory.createValueEditorPane(new Editor[]{new ColumnNameEditor(), new ColumnIndexEditor()});
|
|
|
|
@ -164,7 +164,7 @@ public class TableDataDictPane extends FurtherBasicBeanPane<TableDataDictionary>
|
|
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Dic_Data_Query"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void tdChange(final ItemEvent e, boolean needTableDataChange) { |
|
|
|
|
private void tdChange(final ItemEvent e) { |
|
|
|
|
TableDataWrapper tableDataWrappe = this.tableDataNameComboBox.getSelectedItem(); |
|
|
|
|
if (tableDataWrappe == null) { |
|
|
|
|
return; |
|
|
|
@ -173,7 +173,7 @@ public class TableDataDictPane extends FurtherBasicBeanPane<TableDataDictionary>
|
|
|
|
|
itemListener.itemStateChanged(e); |
|
|
|
|
localFormulaEditor.addChangeListener(event -> itemListener.itemStateChanged(e)); |
|
|
|
|
} |
|
|
|
|
if (needTableDataChange) { |
|
|
|
|
if (isNeedTableDataChange()) { |
|
|
|
|
changeColumnsName(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -404,4 +404,8 @@ public class TableDataDictPane extends FurtherBasicBeanPane<TableDataDictionary>
|
|
|
|
|
public void registerDSChangeListener() { |
|
|
|
|
tableDataNameComboBox.registerGlobalDSChangeListener(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isNeedTableDataChange() { |
|
|
|
|
return needTableDataChange; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|