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