lemon
4 months ago
5 changed files with 60 additions and 20 deletions
@ -0,0 +1,37 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.ToolBarHandler; |
||||
import com.fr.design.menu.ShortCut; |
||||
import com.fr.stable.fun.impl.AbstractProvider; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
/** |
||||
* @author lemon |
||||
* @since |
||||
* Created on |
||||
* 工具按钮插件适配抽象类 |
||||
*/ |
||||
@API(level = ToolBarHandler.CURRENT_LEVEL) |
||||
public abstract class AbstractToolBarHandler extends AbstractProvider implements ToolBarHandler { |
||||
/** |
||||
* 当前接口的API等级,用于判断是否需要升级插件 |
||||
* @return API等级 |
||||
*/ |
||||
public int currentAPILevel() { |
||||
return CURRENT_LEVEL; |
||||
} |
||||
|
||||
@Override |
||||
public String mark4Provider() { |
||||
return this.getClass().getName(); |
||||
} |
||||
|
||||
/** |
||||
* 获取当前工具按钮对应的Action |
||||
* |
||||
* @return 工具按钮 Action |
||||
*/ |
||||
public ShortCut shortcut() { |
||||
return null; |
||||
} |
||||
} |
Loading…
Reference in new issue