Browse Source

REPORT-11714 开放接口

research/10.0
Hades 6 years ago
parent
commit
e5a69f8c92
  1. 5
      designer-base/src/main/java/com/fr/design/designer/properties/PropertyTab.java
  2. 26
      designer-base/src/main/java/com/fr/design/fun/ParameterExpandablePaneUIProvider.java
  3. 19
      designer-base/src/main/java/com/fr/design/fun/impl/AbstractParameterExpandablePaneUIProvider.java

5
designer-base/src/main/java/com/fr/design/designer/properties/PropertyTab.java

@ -0,0 +1,5 @@
package com.fr.design.designer.properties;
public enum PropertyTab {
ATTR, MOBILE
}

26
designer-base/src/main/java/com/fr/design/fun/ParameterExpandablePaneUIProvider.java

@ -0,0 +1,26 @@
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;
/**
* 如果面板不存在则创建可展开面板并添加子容器否则在某个tabPane下的UIExpandablePane实例中增加子容器
*
* @param propertyTab 可展开面板放在哪个propertyTab下例如属性或者移动端
* @param UIExpandablePaneName 可扩展面板名称
* @return UIExpandablePane
*/
UIExpandablePane createUIExpandablePane(PropertyTab propertyTab, String UIExpandablePaneName);
}

19
designer-base/src/main/java/com/fr/design/fun/impl/AbstractParameterExpandablePaneUIProvider.java

@ -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…
Cancel
Save