Browse Source

Merge pull request #763 in BA/design from ~ZHENG/design:dev to dev

* commit '6b6c4c43e026728eb3cffb7e36ed56475b110e2f':
  控件名称更改
master
superman 8 years ago
parent
commit
2de61b6b57
  1. 20
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

20
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

@ -33,7 +33,7 @@ import java.util.List;
* @version 创建时间2012-12-26 上午10:56:51 * @version 创建时间2012-12-26 上午10:56:51
*/ */
public class ChartTypePane extends AbstractChartAttrPane{ public class ChartTypePane extends AbstractChartAttrPane{
private ComboBoxPane chartTypePane; private ComboBoxPane chartTypeComBox;
private ChartTypeButtonPane buttonPane; private ChartTypeButtonPane buttonPane;
private ChartEditPane editPane; private ChartEditPane editPane;
private ChartCollection editingCollection; private ChartCollection editingCollection;
@ -72,13 +72,13 @@ public class ChartTypePane extends AbstractChartAttrPane{
if (editingCollection != null) { if (editingCollection != null) {
relayoutChartTypePane(editingCollection); relayoutChartTypePane(editingCollection);
}else { }else {
chartTypePane = new ComboBoxPane(); chartTypeComBox = new ComboBoxPane();
} }
BasicScrollPane scrollPane = new BasicScrollPane() { BasicScrollPane scrollPane = new BasicScrollPane() {
@Override @Override
protected JPanel createContentPane() { protected JPanel createContentPane() {
return chartTypePane; return chartTypeComBox;
} }
@Override @Override
@ -99,7 +99,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
}; };
content.add(scrollPane, BorderLayout.CENTER); content.add(scrollPane, BorderLayout.CENTER);
buttonPane.setEditingChartPane(chartTypePane); buttonPane.setEditingChartPane(chartTypeComBox);
return content; return content;
} }
@ -286,7 +286,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
public void relayoutChartTypePane(ChartCollection collection){ public void relayoutChartTypePane(ChartCollection collection){
if (needRelayout(collection)) { if (needRelayout(collection)) {
chartTypePane.relayout(collection); chartTypeComBox.relayout(collection);
//设置面板切换状态 //设置面板切换状态
updatePaneState(collection); updatePaneState(collection);
} }
@ -314,7 +314,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
initContentPane(); initContentPane();
buttonPane.populateBean(collection); buttonPane.populateBean(collection);
chartTypePane.populateBean(chart); chartTypeComBox.populateBean(chart);
this.initAllListeners(); this.initAllListeners();
} }
@ -326,7 +326,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
editingCollection = collection; editingCollection = collection;
buttonPane.update(collection);// 内部操作时 已经做过处理. buttonPane.update(collection);// 内部操作时 已经做过处理.
Chart chart = collection.getSelectedChart(); Chart chart = collection.getSelectedChart();
chartTypePane.updateBean(chart); chartTypeComBox.updateBean(chart);
} }
/** /**
@ -334,7 +334,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
* @return 类型界面 * @return 类型界面
*/ */
public FurtherBasicBeanPane[] getPaneList(){ public FurtherBasicBeanPane[] getPaneList(){
return chartTypePane.getCards().toArray(new FurtherBasicBeanPane[0]); return chartTypeComBox.getCards().toArray(new FurtherBasicBeanPane[0]);
} }
/** /**
@ -342,7 +342,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
* @return 当前选中的图表的index * @return 当前选中的图表的index
*/ */
public int getSelectedIndex(){ public int getSelectedIndex(){
return chartTypePane.getSelectedIndex(); return chartTypeComBox.getSelectedIndex();
} }
/** /**
@ -350,7 +350,7 @@ public class ChartTypePane extends AbstractChartAttrPane{
* @return 选中的图标的序号 * @return 选中的图标的序号
*/ */
public int getSelectedChartIndex(){ public int getSelectedChartIndex(){
return chartTypePane.getSelectedIndex(); return chartTypeComBox.getSelectedIndex();
} }
/** /**

Loading…
Cancel
Save