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.
49 lines
1.1 KiB
49 lines
1.1 KiB
package com.fr.design.fun; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
import com.fr.form.ui.Widget; |
|
import com.fr.stable.Filter; |
|
import com.fr.stable.fun.mark.Mutable; |
|
|
|
/** |
|
* @author : focus |
|
* @since : 8.0 |
|
* 自定义web工具栏菜单 |
|
*/ |
|
public interface ToolbarItemProvider extends Mutable, Filter<JTemplate> { |
|
|
|
String XML_TAG = "ToolbarItemProvider"; |
|
|
|
int CURRENT_LEVEL = 1; |
|
|
|
|
|
/** |
|
* 自定义web工具栏菜单实际类,该类可以继承自com.fr.form.ui.ToolBarMenuButton 或者 com.fr.form.ui.ToolBarButton; |
|
* |
|
* @return 菜单类 |
|
*/ |
|
Class<? extends Widget> classForWidget(); |
|
|
|
/** |
|
* 自定义web工具栏菜单在设计器界面上的图标路径 |
|
* |
|
* @return 图标所在的路径 |
|
*/ |
|
String iconPathForWidget(); |
|
|
|
/** |
|
* 自定义web工具栏菜单在设计器上显示的名字 |
|
* |
|
* @return 菜单名 |
|
*/ |
|
String nameForWidget(); |
|
|
|
/** |
|
* 模板(决策报表 or cpt)是否支持此工具栏按钮 |
|
* JTemplate 模板 |
|
* @return 支持返回true, 否则false |
|
*/ |
|
@Override |
|
boolean accept(JTemplate template); |
|
|
|
} |