Browse Source

修改一直触发查询bug

master
mengao 7 years ago
parent
commit
f8cd4e13c5
  1. 3
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI.java
  2. 3
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java
  3. 2
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartsUI.java
  4. 6
      designer_chart/src/com/fr/design/mainframe/ChartPropertyPane.java
  5. 6
      designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java
  6. 11
      designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java
  7. 9
      designer_chart/src/com/fr/design/mainframe/chart/ChartsEditPane.java

3
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI.java

@ -12,6 +12,7 @@ import com.fr.design.mainframe.chart.ChartsConfigPane;
import com.fr.design.mainframe.chart.gui.ChartDataPane;
import com.fr.design.mainframe.chart.gui.ChartStylePane;
import com.fr.general.ComparatorUtils;
import com.fr.stable.StableUtils;
/**
@ -57,7 +58,7 @@ public abstract class AbstractIndependentChartUI implements IndependentChartUIPr
return new DataSeriesConditionPane();
}
public ChartEditPane getChartEditPane(String plotID){ return ChartEditPane.getInstance();}
public ChartEditPane getChartEditPane(String plotID){ return StableUtils.construct(ChartEditPane.class);}
public ChartsConfigPane getChartConfigPane(String plotID){return null;}

3
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java

@ -12,6 +12,7 @@ import com.fr.design.mainframe.chart.ChartsConfigPane;
import com.fr.design.mainframe.chart.gui.ChartDataPane;
import com.fr.design.mainframe.chart.gui.ChartStylePane;
import com.fr.general.ComparatorUtils;
import com.fr.stable.StableUtils;
/**
* Created by Mitisky on 16/3/7.
@ -68,7 +69,7 @@ public abstract class AbstractIndependentChartUIWithAPILevel implements Independ
return getPlotTypePane().title4PopupWindow();
}
public ChartEditPane getChartEditPane(String plotID){ return ChartEditPane.getInstance();}
public ChartEditPane getChartEditPane(String plotID){ return StableUtils.construct(ChartEditPane.class);}
public ChartsConfigPane getChartConfigPane(String plotID){return null;}
}

2
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartsUI.java

@ -97,7 +97,7 @@ public abstract class AbstractIndependentChartsUI extends AbstractProvider imple
@Override
public ChartEditPane getChartEditPane(String plotID) {
return ChartsEditPane.getInstance();
return new ChartsEditPane();
}
}

6
designer_chart/src/com/fr/design/mainframe/ChartPropertyPane.java

@ -14,10 +14,9 @@ public class ChartPropertyPane extends MiddleChartPropertyPane{
* 创建图表属性表实例.
*/
private synchronized static ChartPropertyPane getInstance() {
//todo
//创建新图表时,创建属性表配置面板
if (singleton == null) {
singleton = new ChartPropertyPane();
}
return singleton;
}
@ -37,9 +36,6 @@ public class ChartPropertyPane extends MiddleChartPropertyPane{
@Override
protected void createMainPane() {
this.removeAll();
createNameLabel();
this.add(createNorthComponent(), BorderLayout.NORTH);
this.add(chartEditPane, BorderLayout.CENTER);
}

6
designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java

@ -15,6 +15,7 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.itabpane.TitleChangeListener;
import com.fr.design.mainframe.chart.ChartEditPane;
import com.fr.general.Inter;
import com.fr.stable.StableUtils;
import javax.swing.*;
import java.awt.*;
@ -33,7 +34,10 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
protected void initComponenet() {
this.setLayout(new BorderLayout());
this.setBorder(null);
chartEditPane = ChartEditPane.getInstance();
createNameLabel();
this.add(createNorthComponent(), BorderLayout.NORTH);
chartEditPane = StableUtils.construct(ChartEditPane.class);
chartEditPane.setSupportCellData(true);
}

11
designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java

@ -33,15 +33,6 @@ import java.util.List;
public class ChartEditPane extends BasicPane implements AttributeChange,Prepare4DataSourceChange, ChartEditPaneProvider {
public synchronized static ChartEditPane getInstance() {
if (singleton == null) {
singleton = new ChartEditPane();
}
return singleton;
}
private static ChartEditPane singleton;
private final static int CHANGE_MIN_TIME = 80;
protected ChartCollection collection;
@ -351,8 +342,10 @@ public class ChartEditPane extends BasicPane implements AttributeChange,Prepare4
DesignTableDataManager.addDsChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
AbstractChartAttrPane attrPane = paneList.get(tabsHeaderIconPane.getSelectedIndex());
if (attrPane.isShowing()) {
attrPane.refreshChartDataPane(collection);
}
}
});
}
}

9
designer_chart/src/com/fr/design/mainframe/chart/ChartsEditPane.java

@ -13,15 +13,6 @@ import java.util.ArrayList;
public class ChartsEditPane extends ChartEditPane {
protected ChartsConfigPane chartsConfigPane;
private static ChartEditPane single;
public synchronized static ChartEditPane getInstance() {
if (single == null) {
single = new ChartsEditPane();
}
return single;
}
public ChartsEditPane() {
this.setLayout(new BorderLayout());

Loading…
Cancel
Save