forked from fanruan/design
kerry
4 years ago
3 changed files with 55 additions and 1 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