org.tinygroup.menucommand.handler
类 SystemCommandHandler

java.lang.Object
  继承者 org.tinygroup.menucommand.handler.SystemCommandHandler
所有已实现的接口:
CommandHandler
直接已知子类:
BackCommandHandler, ExitCommandHandler, HelpCommandHandler, HomeCommandHandler, QueryCommandHandler, ShowCommandHandler

public abstract class SystemCommandHandler
extends Object
implements CommandHandler

抽象的系统命令的钩子

作者:
yancheng11334

构造方法摘要
SystemCommandHandler()
           
 
方法摘要
 void afterExecute(org.tinygroup.context.Context context)
          命令后置操作
 void beforeExecute(org.tinygroup.context.Context context)
          命令前置操作
protected  void dealExitEvent(String command, MenuConfig config, org.tinygroup.context.Context context)
          执行退出操作
protected abstract  void execute(String command, SystemCommand systemCommand, MenuConfig config, org.tinygroup.context.Context context)
          执行相关菜单逻辑,保存渲染路径和跳转菜单id
protected  String getRenderPath(SystemCommand systemCommand, org.tinygroup.context.Context context)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SystemCommandHandler

public SystemCommandHandler()
方法详细信息

beforeExecute

public void beforeExecute(org.tinygroup.context.Context context)
从接口 CommandHandler 复制的描述
命令前置操作

指定者:
接口 CommandHandler 中的 beforeExecute

afterExecute

public void afterExecute(org.tinygroup.context.Context context)
从接口 CommandHandler 复制的描述
命令后置操作

指定者:
接口 CommandHandler 中的 afterExecute

getRenderPath

protected String getRenderPath(SystemCommand systemCommand,
                               org.tinygroup.context.Context context)

dealExitEvent

protected void dealExitEvent(String command,
                             MenuConfig config,
                             org.tinygroup.context.Context context)
执行退出操作

参数:
config -
context -

execute

protected abstract void execute(String command,
                                SystemCommand systemCommand,
                                MenuConfig config,
                                org.tinygroup.context.Context context)
执行相关菜单逻辑,保存渲染路径和跳转菜单id

参数:
command -
systemCommand -
config -
context -


Copyright © 2006–2016 TinyGroup. All rights reserved.