Interface IModule

All Known Implementing Classes:
BaseAbstractModule, SubsystemModule, ToolbarModule, ToolbarModules

public interface IModule
系统中模块的定义接口,根据设计原则,可以将代码划分为 系统/模块/子模块/操作 四个界别 这个接口定义了如果要满足 模块和子模块的功能必须要实现的接口
Author:
zhangjianshe
  • Method Details

    • initialize

      boolean initialize(IModule parentModule, ModuleParameter parameters)
      初始化模块.
      Parameters:
      parentModule - the parent module
      parameters - the parameters
      Returns:
      true 表示可以初始化本模块,false表示已经初始化子模块了,本模块可以不用初始化
    • unInitialize

      void unInitialize()
      卸载模块.
    • getRootWidget

      com.google.gwt.user.client.ui.Widget getRootWidget()
      返回模块的Widget.
      Returns:
      the root widget
    • updateTools

      boolean updateTools(com.google.gwt.user.client.ui.Widget... tools)
      用于模块向父模块注册工具栏按钮
      Parameters:
      tools - the tools
      Returns:
      the boolean
    • appendTools

      boolean appendTools(com.google.gwt.user.client.ui.Widget tools)
      用于模块向父模块注册工具栏按钮
      Parameters:
      tools - the tools
      Returns:
      the boolean
    • appendTools

      boolean appendTools(com.google.gwt.user.client.ui.Widget[] tools)
      用于模块向父模块注册工具栏按钮
      Parameters:
      tools - the tools
      Returns:
      the boolean
    • getModuleInfo

      ModuleInfo getModuleInfo()
      获取模块信息
      Returns:
      module info
    • getParentModule

      IModule getParentModule()
      获取模块的父模块
      Returns:
      parent module
    • getParameters

      ModuleParameter getParameters()
      获取模块参数.
      Returns:
      parameters
    • addModuleCallback

      void addModuleCallback(IModuleCallback callback)
      香摩卡注册事件回调
      Parameters:
      callback -