public interface MenuConfigManager
Modifier and Type | Method and Description |
---|---|
void |
addMenuConfig(MenuConfig config)
添加定义菜单
|
void |
addMenuConfigs(MenuConfigs configs)
添加一组定义菜单
|
void |
addSystemCommand(SystemCommand command)
添加系统命令
|
CommandExecutor |
getCommandExecutor(String menuId,
String command,
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)
删除系统命令
|
void addMenuConfigs(MenuConfigs configs)
configs
- void removeMenuConfigs(MenuConfigs configs)
configs
- void addMenuConfig(MenuConfig config)
config
- void removeMenuConfig(MenuConfig config)
config
- MenuConfig getMenuConfig(String menuId)
menuId
- void addSystemCommand(SystemCommand command)
command
- void removeSystemCommand(SystemCommand command)
command
- SystemCommand getSystemCommand(String command)
command
- List<SystemCommand> getSystemCommandList()
CommandExecutor getCommandExecutor(String menuId, String command, Context context)
menuId
- command
- context
- Copyright © 2006–2018 TinyGroup. All rights reserved.