Browse Source

Merge pull request #537 in DESIGN/design from ~ALEX.SUNG/design:10.0 to 10.0

REPORT-10699 屏蔽表单里面的上传事件

* commit '4849f46757742fcd5a5e0b601967a2aba508fa15':
  REPORT-10699 屏蔽表单里面的上传事件 10.0分支也要修改
master
Alex.Sung 6 years ago
parent
commit
74d9f2a416
  1. 1
      designer-base/src/main/java/com/fr/design/fun/JavaScriptActionProvider.java
  2. 9
      designer-base/src/main/java/com/fr/design/fun/impl/AbstractJavaScriptActionProvider.java
  3. 4
      designer-base/src/main/java/com/fr/design/javascript/JavaScriptActionPane.java

1
designer-base/src/main/java/com/fr/design/fun/JavaScriptActionProvider.java

@ -18,4 +18,5 @@ public interface JavaScriptActionProvider extends Mutable{
FurtherBasicBeanPane<? extends JavaScript> getJavaScriptActionPane(JavaScriptActionPane pane);
boolean isSupportType();
}

9
designer-base/src/main/java/com/fr/design/fun/impl/AbstractJavaScriptActionProvider.java

@ -26,4 +26,13 @@ public abstract class AbstractJavaScriptActionProvider extends AbstractProvider
public FurtherBasicBeanPane<? extends JavaScript> getJavaScriptActionPane(JavaScriptActionPane pane) {
return getJavaScriptActionPane();
}
/**
* 判断是否是支持的类型cpt,frm默认是
* @return
*/
@Override
public boolean isSupportType(){
return true;
}
}

4
designer-base/src/main/java/com/fr/design/javascript/JavaScriptActionPane.java

@ -46,7 +46,9 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
Set<JavaScriptActionProvider> javaScriptActionProviders = ExtraDesignClassManager.getInstance().getArray(JavaScriptActionProvider.XML_TAG);
if (javaScriptActionProviders != null) {
for (JavaScriptActionProvider jsp : javaScriptActionProviders) {
paneList.add(jsp.getJavaScriptActionPane(this));
if(jsp.isSupportType()){
paneList.add(jsp.getJavaScriptActionPane(this));
}
}
}
// 自定义事件

Loading…
Cancel
Save