帆软报表设计器源代码。
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.
 
 
 
 

74 lines
1.5 KiB

package com.fr.design.fun;
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus;
import com.fr.design.menu.ShortCut;
import com.fr.stable.fun.mark.Mutable;
/**
* @author richie
* @date 2015-04-01
* @since 8.0
* 设计器菜单栏插件接口
*/
public interface MenuHandler extends Mutable {
String MARK_STRING = "MenuHandler";
int CURRENT_LEVEL = 1;
int LAST = -1;
int HIDE =-2;
String HELP = "help";
String SERVER = "server";
String FILE = "file";
String TEMPLATE = "template";
String INSERT = "insert";
String CELL = "cell";
String BBS = "bbs";
/**
* 插入菜单的位置
*
* @param total 插入的位置
* @return 插入位置,如果想放到最后,则返回-1
*/
int insertPosition(int total);
/**
* 是否在插入的菜单前插入一个分割符
*
* @return 是否插入分隔符
*/
boolean insertSeparatorBefore();
/**
* 是否在插入的菜单后插入一个分割符
*
* @return 是否插入分隔符
*/
boolean insertSeparatorAfter();
/**
* 所属的分类菜单
*
* @return 分类菜单名
*/
String category();
/**
* 具体的菜单项内容
*
* @return 菜单项内容
*/
ShortCut shortcut();
/**
* 具体的菜单项内容
*
* @param plus 当前模板
* @return 菜单项内容
*/
ShortCut shortcut(ToolBarMenuDockPlus plus);
}