【仅供内部供应商使用,不提供对外解答和培训】

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

接口作用

增加可设置的背景类型。设计器中默认包含:没有背景、颜色、纹理、渐变色、图片、图案共六种类型,可以通过该接口进行扩展。

接口内容

BackgroundUIProvider
public interface BackgroundUIProvider extends Level, Provider {

    String MARK_STRING = "BackgroundUIProvider";

    int CURRENT_LEVEL = 1;

    /**
     * 对应的背景具体类型
     * @return 背景
     */
    Class<? extends Background> targetClass();

    /**
     * 背景设置界面
     * @return 界面
     */
    Class<? extends BackgroundDetailPane> targetUIClass();

    /**
     * 标题
     * @return 在设计界面上这个选项的显示标题
     */
    String targetTitle();
}

注册方式

<extra-designer>
 <BackgroundUIProvider class="com.fr.plugin.xxx.youclassname"/>
</extra-designer>
  • No labels