Browse Source

扩展了一下AbstractJavaScriptActionProvider接口

master
loy 8 years ago
parent
commit
14adf14d85
  1. 15
      designer_base/src/com/fr/design/fun/impl/AbstractJavaScriptActionExtensionProvider.java
  2. 4
      designer_base/src/com/fr/design/javascript/JavaScriptActionPane.java

15
designer_base/src/com/fr/design/fun/impl/AbstractJavaScriptActionExtensionProvider.java

@ -0,0 +1,15 @@
package com.fr.design.fun.impl;
import com.fr.design.javascript.JavaScriptActionPane;
/**
* Created by loy on 16/8/23.
*/
public abstract class AbstractJavaScriptActionExtensionProvider extends AbstractJavaScriptActionProvider {
/**
* 传给插件额外参数
* @param pane
*/
public abstract void setJavaScriptActionPane(JavaScriptActionPane pane);
}

4
designer_base/src/com/fr/design/javascript/JavaScriptActionPane.java

@ -3,6 +3,7 @@ package com.fr.design.javascript;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.fun.JavaScriptActionProvider;
import com.fr.design.fun.impl.AbstractJavaScriptActionExtensionProvider;
import com.fr.design.gui.frpane.UIComboBoxPane;
import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.mainframe.DesignerContext;
@ -56,6 +57,9 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
Set<JavaScriptActionProvider> javaScriptActionProviders = ExtraDesignClassManager.getInstance().getArray(JavaScriptActionProvider.XML_TAG);
if (javaScriptActionProviders != null) {
for (JavaScriptActionProvider jsp : javaScriptActionProviders) {
if (jsp instanceof AbstractJavaScriptActionExtensionProvider) {
((AbstractJavaScriptActionExtensionProvider) jsp).setJavaScriptActionPane(this);
}
paneList.add(jsp.getJavaScriptActionPane());
}
}

Loading…
Cancel
Save