org.tinygroup.menucommand.config
类 MenuConfig

java.lang.Object
  继承者 org.tinygroup.menucommand.config.BaseObject
      继承者 org.tinygroup.menucommand.config.MenuConfig

public class MenuConfig
extends BaseObject

定义菜单

作者:
yancheng11334

构造方法摘要
MenuConfig()
           
 
方法摘要
 MenuCommand getMatchMenuCommand(String command)
          得到匹配的子菜单命令
 MenuConfig getMatchMenuConfig(String command)
          得到匹配的子菜单配置
 List<MenuCommand> getMenuCommandList()
           
 List<MenuConfig> getMenuConfigList()
           
 String getMenuConfigPath()
          获得菜单所在路径
 MenuConfig getParent()
           
 MenuCommand matchEvent(String eventType)
          根据事件类型进行命令匹配
 void setMenuCommandList(List<MenuCommand> menuCommandList)
           
 void setMenuConfigList(List<MenuConfig> menuConfigList)
           
 void setParent(MenuConfig parent)
           
 
从类 org.tinygroup.menucommand.config.BaseObject 继承的方法
compile, getDescription, getId, getName, getPath, getPattern, getRegex, getTitle, match, setDescription, setId, setName, setPath, setPattern, setRegex, setTitle
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MenuConfig

public MenuConfig()
方法详细信息

getMenuConfigList

public List<MenuConfig> getMenuConfigList()

setMenuConfigList

public void setMenuConfigList(List<MenuConfig> menuConfigList)

getMenuCommandList

public List<MenuCommand> getMenuCommandList()

setMenuCommandList

public void setMenuCommandList(List<MenuCommand> menuCommandList)

getParent

public MenuConfig getParent()

setParent

public void setParent(MenuConfig parent)

getMatchMenuConfig

public MenuConfig getMatchMenuConfig(String command)
得到匹配的子菜单配置

参数:
command -
返回:

getMatchMenuCommand

public MenuCommand getMatchMenuCommand(String command)
得到匹配的子菜单命令

参数:
command -
返回:

getMenuConfigPath

public String getMenuConfigPath()
获得菜单所在路径

返回:

matchEvent

public MenuCommand matchEvent(String eventType)
根据事件类型进行命令匹配

参数:
eventType -
返回:


Copyright © 2006–2016 TinyGroup. All rights reserved.