Browse Source

接口代码优化

master
mengao 8 years ago
parent
commit
2c523e1088
  1. 7
      designer_chart/src/com/fr/design/mainframe/chart/ThirdChartEditPane.java
  2. 11
      designer_chart/src/com/fr/design/mainframe/chart/ThirdChartInterface.java

7
designer_chart/src/com/fr/design/mainframe/chart/ThirdChartEditPane.java

@ -15,14 +15,13 @@ import java.awt.*;
/** /**
* Created by mengao on 2017/5/3. * Created by mengao on 2017/5/3.
*/ */
public abstract class ThirdChartEditPane extends ChartEditPane implements ChartEditPaneProvider, ThirdChartInterface { public abstract class ThirdChartEditPane extends ChartEditPane implements ChartEditPaneProvider {
//构建主面板 //构建主面板
protected void createTabsPane() { protected void createTabsPane() {
Icon[] iconArray = new Icon[paneList.size()]; Icon[] iconArray = new Icon[paneList.size()];
card = new CardLayout(); card = new CardLayout();
center = new JPanel(card); center = new JPanel(card);
tabsHeaderIconPane = new UIHeadGroup(iconArray) { tabsHeaderIconPane = new UIHeadGroup(iconArray) {
@Override @Override
public void tabChanged(int index) { public void tabChanged(int index) {
@ -165,4 +164,8 @@ public abstract class ThirdChartEditPane extends ChartEditPane implements ChartE
return "CustomChart"; return "CustomChart";
} }
protected abstract void populateBean(Object ob);
protected abstract void updateBean(Object ob);
} }

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

@ -1,11 +0,0 @@
package com.fr.design.mainframe.chart;
/**
* Created by mengao on 2017/5/8.
*/
public interface ThirdChartInterface {
void populateBean(Object ob);
void updateBean(Object ob);
}
Loading…
Cancel
Save