org.tinygroup.menucommand
接口 MenuConfigManager

所有已知实现类:
MenuConfigManagerDefault

public interface MenuConfigManager

菜单管理器

作者:
yancheng11334

方法摘要
 void addMenuConfig(MenuConfig config)
          添加定义菜单
 void addMenuConfigs(MenuConfigs configs)
          添加一组定义菜单
 void addSystemCommand(SystemCommand command)
          添加系统命令
 CommandExecutor getCommandExecutor(String menuId, String command, org.tinygroup.context.Context context)
          得到对应的命令执行器
 MenuConfig getMenuConfig(String menuId)
          获得指定的菜单
 SystemCommand getSystemCommand(String command)
          匹配系统命令
 List<SystemCommand> getSystemCommandList()
          获得支持的系统命令列表
 void removeMenuConfig(MenuConfig config)
          删除定义菜单
 void removeMenuConfigs(MenuConfigs configs)
          删除一组定义菜单
 void removeSystemCommand(SystemCommand command)
          删除系统命令
 

方法详细信息

addMenuConfigs

void addMenuConfigs(MenuConfigs configs)
添加一组定义菜单

参数:
configs -

removeMenuConfigs

void removeMenuConfigs(MenuConfigs configs)
删除一组定义菜单

参数:
configs -

addMenuConfig

void addMenuConfig(MenuConfig config)
添加定义菜单

参数:
config -

removeMenuConfig

void removeMenuConfig(MenuConfig config)
删除定义菜单

参数:
config -

getMenuConfig

MenuConfig getMenuConfig(String menuId)
获得指定的菜单

参数:
menuId -
返回:

addSystemCommand

void addSystemCommand(SystemCommand command)
添加系统命令

参数:
command -

removeSystemCommand

void removeSystemCommand(SystemCommand command)
删除系统命令

参数:
command -

getSystemCommand

SystemCommand getSystemCommand(String command)
匹配系统命令

参数:
command -
返回:

getSystemCommandList

List<SystemCommand> getSystemCommandList()
获得支持的系统命令列表

返回:

getCommandExecutor

CommandExecutor getCommandExecutor(String menuId,
                                   String command,
                                   org.tinygroup.context.Context context)
得到对应的命令执行器

参数:
menuId -
command -
context -
返回:


Copyright © 2006–2016 TinyGroup. All rights reserved.