Browse Source

Pull request #3478: CHART-17983 仪表盘目标值默认 && CHART-18024 数据集改变,监听重复导致结果错误

Merge in DESIGN/design from ~BJORN/design:release/10.0 to release/10.0

* commit 'a3603b0fa47f8846bd994486eb1b36fdad5100f5':
  CHART-17983 仪表盘目标值默认 && CHART-18024 数据集改变,监听重复导致结果错误
feature/big-screen
Bjorn 4 years ago
parent
commit
aabaec7fab
  1. 7
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/data/DatabaseTableDataPane.java
  2. 1
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/data/table/MeterPlotTableDataContentPane.java

7
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/data/DatabaseTableDataPane.java

@ -82,7 +82,12 @@ public class DatabaseTableDataPane extends BasicPane{
} }
private void initTableCombox() { private void initTableCombox() {
tableNameCombox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource()); tableNameCombox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource()){
//图表的数据集选择下拉框,不需要注册监听,chartEditPane已经注册了。
public void registerDSChangeListener() {
}
};
tableNameCombox.addItemListener(new ItemListener() { tableNameCombox.addItemListener(new ItemListener() {
@Override @Override
public void itemStateChanged(ItemEvent e) { public void itemStateChanged(ItemEvent e) {

1
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/data/table/MeterPlotTableDataContentPane.java

@ -56,6 +56,7 @@ public class MeterPlotTableDataContentPane extends AbstractTableDataContentPane
this.setLayout(new BorderLayout()); this.setLayout(new BorderLayout());
nameBox = new UIComboBoxWithNone(); nameBox = new UIComboBoxWithNone();
nameBox.setSelectedIndex(nameBox.getItemCount() -1);
valueBox = new UIComboBox(); valueBox = new UIComboBox();
targetBox = new UIComboBox(); targetBox = new UIComboBox();
custom = new TinyFormulaPane(); custom = new TinyFormulaPane();

Loading…
Cancel
Save