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.
55 lines
1.3 KiB
55 lines
1.3 KiB
/* |
|
* Copyright (C), 2015-2019 |
|
* FileName: ParamMenuHandler |
|
* Author: xx |
|
* Date: 2019/09/09 |
|
* Description: ParamMenuHandler |
|
* History: |
|
* <author> <time> <version> <desc> |
|
* 作者姓名 修改时间 版本号 描述 |
|
*/ |
|
package com.fr.plugin.isgd.menu; |
|
|
|
import com.fr.design.fun.MenuHandler; |
|
import com.fr.design.fun.impl.AbstractMenuHandler; |
|
import com.fr.design.mainframe.JWorkBook; |
|
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
|
import com.fr.design.menu.ShortCut; |
|
|
|
/** |
|
* <功能简述><br> |
|
* <ParamMenuHandler> |
|
* |
|
* @author xx |
|
* @create 2019/09/09 |
|
* @since 1.0.0 |
|
*/ |
|
public class ParamMenuHandler extends AbstractMenuHandler { |
|
@Override |
|
public ShortCut shortcut(ToolBarMenuDockPlus toolBarMenuDockPlus) { |
|
if (toolBarMenuDockPlus instanceof JWorkBook) { |
|
return new ParamAction((JWorkBook) toolBarMenuDockPlus); |
|
} |
|
return null; |
|
} |
|
|
|
@Override |
|
public int insertPosition(int i) { |
|
return LAST; |
|
} |
|
|
|
@Override |
|
public boolean insertSeparatorBefore() { |
|
return false; |
|
} |
|
|
|
@Override |
|
public boolean insertSeparatorAfter() { |
|
return false; |
|
} |
|
|
|
@Override |
|
public String category() { |
|
return MenuHandler.TEMPLATE; |
|
} |
|
}
|
|
|