Browse Source
* commit 'b2bc24b9ff94d6dd7da52123d73a69992fccda6c': merge merge chart : ba-9.0 => pf-9.0master
superman
8 years ago
6 changed files with 5 additions and 36 deletions
@ -1,31 +0,0 @@ |
|||||||
package com.fr.design.extra; |
|
||||||
|
|
||||||
import com.fr.chart.charttypes.ChartTypeManager; |
|
||||||
import com.fr.plugin.proxy.CloseableInvocationHandler; |
|
||||||
|
|
||||||
/** |
|
||||||
* Created by juhaoyu on 2016/12/27. |
|
||||||
*/ |
|
||||||
public class ChartTypeInterfaceCloseableHandler extends CloseableInvocationHandler { |
|
||||||
|
|
||||||
|
|
||||||
private final String plotID; |
|
||||||
|
|
||||||
public ChartTypeInterfaceCloseableHandler(String plotID) throws NoSuchMethodException { |
|
||||||
|
|
||||||
super(); |
|
||||||
this.plotID = plotID; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
protected boolean invokeIsClosed() { |
|
||||||
|
|
||||||
//UI对应的chart如果关闭或者不存在,则UI关闭
|
|
||||||
return super.invokeIsClosed() || !containsChart(); |
|
||||||
} |
|
||||||
|
|
||||||
private boolean containsChart() { |
|
||||||
|
|
||||||
return ChartTypeManager.getInstance().containsPlot(plotID); |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue