Browse Source
Merge in DESIGN/design from ~KERRY/design_10.0:feature/10.0 to feature/10.0 * commit '0c0ba054b9ff2e983150c4800514deccda0e98f1': REPORT-53328 && REPORT-53314 交互修改 KERNEL-7974 看下新的控件式组件做成插件支持需要开放什么接口feature/10.0
kerry
3 years ago
5 changed files with 74 additions and 7 deletions
@ -0,0 +1,29 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.design.designer.creator.XCreator; |
||||
import com.fr.design.mainframe.BaseJForm; |
||||
import com.fr.design.mainframe.FormDesigner; |
||||
import com.fr.stable.fun.mark.Immutable; |
||||
|
||||
import javax.swing.JComponent; |
||||
|
||||
|
||||
/** |
||||
* Created by kerry on 5/28/21 |
||||
*/ |
||||
public interface ShareWidgetUIProcessor extends Immutable { |
||||
|
||||
String MARK_STRING = "ShareWidgetUIProcessor"; |
||||
|
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
/** |
||||
* 生成属性配置界面 |
||||
* |
||||
* @param xCreator 选中的Xcreator |
||||
* @param formDesigner 表单设计器 |
||||
* @return 属性配置界面 |
||||
*/ |
||||
JComponent createToolPane(XCreator xCreator, BaseJForm jform, FormDesigner formDesigner); |
||||
|
||||
} |
@ -0,0 +1,19 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.ShareWidgetUIProcessor; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
/** |
||||
* Created by kerry on 5/28/21 |
||||
*/ |
||||
@API(level = ShareWidgetUIProcessor.CURRENT_LEVEL) |
||||
public abstract class AbstractShareWidgetUIProcessor implements ShareWidgetUIProcessor { |
||||
|
||||
public int currentAPILevel() { |
||||
return CURRENT_LEVEL; |
||||
} |
||||
|
||||
public int layerIndex() { |
||||
return DEFAULT_LAYER_INDEX; |
||||
} |
||||
} |
Loading…
Reference in new issue