第六章控件开发
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.0 KiB

package com.fr.plugin;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.fun.impl.AbstractFormWidgetOptionProvider;
import com.fr.design.fun.impl.AbstractParameterWidgetOptionProvider;
import com.fr.form.ui.Widget;
import com.fr.plugin.pane.MyWidgetConfigPane;
import com.fr.plugin.widget.ICEEditorWidget;
public class MyParameterWidgetOptionProvider extends AbstractParameterWidgetOptionProvider {
@Override
public Class<? extends Widget> classForWidget() {
return ICEEditorWidget.class;
}
/**
* 控件的配置界面
* @return
*/
@Override
public Class<? extends BasicBeanPane<? extends Widget>> appearanceForWidget() {
return MyWidgetConfigPane.class;
}
/**
* 控件的logo
* @return
*/
@Override
public String iconPathForWidget() {
return "com/fr/plugin/web/icon/icon.png";
}
/**
* 这里是显示在控件选择窗口的名称,可以做国际化
* @return
*/
@Override
public String nameForWidget() {
return "myeditor";
}
}