|
|
@ -425,6 +425,8 @@ public class ChartTypeButtonPane extends BasicBeanPane<ChartCollection> implemen |
|
|
|
|
|
|
|
|
|
|
|
private void deleteAButton() { |
|
|
|
private void deleteAButton() { |
|
|
|
//先重构属性,在重构面板,否则面板在重构过程中,会重新将属性中的切换图表加到indexList中,导致面板无法删除
|
|
|
|
//先重构属性,在重构面板,否则面板在重构过程中,会重新将属性中的切换图表加到indexList中,导致面板无法删除
|
|
|
|
|
|
|
|
//记录改变前的plotID
|
|
|
|
|
|
|
|
String lastPlotID = editingCollection == null ? StringUtils.EMPTY : editingCollection.getSelectedChart().getPlot().getPlotID(); |
|
|
|
if (editingCollection != null) { |
|
|
|
if (editingCollection != null) { |
|
|
|
int count = editingCollection.getChartCount(); |
|
|
|
int count = editingCollection.getChartCount(); |
|
|
|
for (int i = 0; i < count; i++) { |
|
|
|
for (int i = 0; i < count; i++) { |
|
|
@ -447,6 +449,11 @@ public class ChartTypeButtonPane extends BasicBeanPane<ChartCollection> implemen |
|
|
|
checkoutChange(); |
|
|
|
checkoutChange(); |
|
|
|
|
|
|
|
|
|
|
|
relayoutPane(); |
|
|
|
relayoutPane(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//重构面板
|
|
|
|
|
|
|
|
if (parent != null ){ |
|
|
|
|
|
|
|
parent.reLayoutEditPane(lastPlotID, editingCollection); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void relayoutPane() { |
|
|
|
private void relayoutPane() { |
|
|
|