|
|
|
@ -17,6 +17,7 @@ import com.fr.design.gui.chart.ChartEditPaneProvider;
|
|
|
|
|
import com.fr.design.gui.frpane.UITitlePanel; |
|
|
|
|
import com.fr.design.mainframe.chart.ChartEditPane; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.Icon; |
|
|
|
@ -96,7 +97,7 @@ public class ChartPropertyPane extends BaseChartPropertyPane {
|
|
|
|
|
* @param collection 收集图表 |
|
|
|
|
* @param ePane 面板 |
|
|
|
|
*/ |
|
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane, @Nullable Runnable callback) { |
|
|
|
|
new SwingWorker<Void, Void>() { |
|
|
|
|
@Override |
|
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
@ -114,6 +115,9 @@ public class ChartPropertyPane extends BaseChartPropertyPane {
|
|
|
|
|
} else { |
|
|
|
|
GUICoreUtils.setEnabled(chartEditPane, false); |
|
|
|
|
} |
|
|
|
|
if (callback != null) { |
|
|
|
|
callback.run(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
} |
|
|
|
@ -123,9 +127,9 @@ public class ChartPropertyPane extends BaseChartPropertyPane {
|
|
|
|
|
* @param collection 收集图表 |
|
|
|
|
* @param ePane 面板 |
|
|
|
|
*/ |
|
|
|
|
public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
|
public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane, @Nullable Runnable callback) { |
|
|
|
|
if (collection instanceof ChartCollection) { |
|
|
|
|
populateChartPropertyPane((ChartCollection) collection, ePane); |
|
|
|
|
populateChartPropertyPane((ChartCollection) collection, ePane, callback); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|