forked from fanruan/design
Browse Source
* commit '005004fabaed3f86c3069ea78bd74663152c1a80': REPORT-11714 开放接口对应的设计器中的修改 REPORT-11714 修改接口定义,修改后不用在插件中做判断 参数名小写 REPORT-11714 开放接口research/10.0
Hades
6 years ago
5 changed files with 91 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||||
|
package com.fr.design.designer.properties; |
||||||
|
|
||||||
|
public enum PropertyTab { |
||||||
|
ATTR, MOBILE |
||||||
|
} |
@ -0,0 +1,31 @@ |
|||||||
|
package com.fr.design.fun; |
||||||
|
|
||||||
|
import com.fr.design.designer.properties.PropertyTab; |
||||||
|
import com.fr.design.foldablepane.UIExpandablePane; |
||||||
|
import com.fr.stable.fun.mark.Mutable; |
||||||
|
|
||||||
|
/** |
||||||
|
* created by hades on 18/10/16 |
||||||
|
* 该接口支持在设计器cpt&frm参数界面的属性和移动端下添加一个UIExpandablePane(可展开面板) |
||||||
|
*/ |
||||||
|
public interface ParameterExpandablePaneUIProvider extends Mutable { |
||||||
|
|
||||||
|
String XML_TAG = "ParameterExpandablePaneUIProvider"; |
||||||
|
|
||||||
|
int CURRENT_LEVEL = 1; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建可展开面板并添加子容器 |
||||||
|
* |
||||||
|
* @return UIExpandablePane |
||||||
|
*/ |
||||||
|
UIExpandablePane createUIExpandablePane(); |
||||||
|
|
||||||
|
/** |
||||||
|
* 指定添加UIExpandablePane到哪个PropertyTab下,例如属性,移动端 |
||||||
|
* |
||||||
|
* @return PropertyTab |
||||||
|
*/ |
||||||
|
PropertyTab addToWhichPropertyTab(); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
package com.fr.design.fun.impl; |
||||||
|
|
||||||
|
import com.fr.design.fun.ParameterExpandablePaneUIProvider; |
||||||
|
import com.fr.stable.fun.impl.AbstractProvider; |
||||||
|
import com.fr.stable.fun.mark.API; |
||||||
|
|
||||||
|
@API(level = ParameterExpandablePaneUIProvider.CURRENT_LEVEL) |
||||||
|
public abstract class AbstractParameterExpandablePaneUIProvider extends AbstractProvider implements ParameterExpandablePaneUIProvider{ |
||||||
|
|
||||||
|
@Override |
||||||
|
public int currentAPILevel() { |
||||||
|
return CURRENT_LEVEL; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String mark4Provider() { |
||||||
|
return getClass().getName(); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue