Class BaseAbstractModule

    • Constructor Detail

      • BaseAbstractModule

        public BaseAbstractModule()
        Instantiates a new Base abstract module.
    • Method Detail

      • getModuleFactory

        public static ModuleFactory getModuleFactory()
        模块工厂
        Returns:
        module factory
      • hasInitialized

        public boolean hasInitialized()
        是否已经初始化了
      • initialize

        public boolean initialize​(IModule parentModule,
                                  ModuleParameter parameter)
        Description copied from interface: IModule
        初始化模块.
        Specified by:
        initialize in interface IModule
        Parameters:
        parentModule - the parent module
        parameter - the parameters
        Returns:
        true 表示可以初始化本模块,false表示已经初始化子模块了,本模块可以不用初始化
      • parseHashParameter

        public HashParameter parseHashParameter​(String hash)
        解析HAsh参数 324525;238;32432 模块ID 模块参数 本函数的功能 提取第一个参数到hash中
        Parameters:
        hash -
        Returns:
      • getHelpInfo

        public HelpInfo getHelpInfo​(String helpId)
        缺省不提供帮助信息
        Specified by:
        getHelpInfo in interface IHelpProvider
        Parameters:
        helpId - 暂时没有使用
        Returns:
      • unInitialize

        public void unInitialize()
        Description copied from interface: IModule
        卸载模块.
        Specified by:
        unInitialize in interface IModule
      • getTools

        public com.google.gwt.user.client.ui.Widget getTools()
        Specified by:
        getTools in interface IToolsProvider
      • updateTools

        public boolean updateTools​(com.google.gwt.user.client.ui.Widget... tools)
        Description copied from interface: IModule
        用于模块向父模块注册工具栏按钮
        Specified by:
        updateTools in interface IModule
        Parameters:
        tools - the tools
        Returns:
        the boolean
      • appendTools

        public boolean appendTools​(com.google.gwt.user.client.ui.Widget tools)
        Description copied from interface: IModule
        用于模块向父模块注册工具栏按钮
        Specified by:
        appendTools in interface IModule
        Parameters:
        tools - the tools
        Returns:
        the boolean
      • appendTools

        public boolean appendTools​(com.google.gwt.user.client.ui.Widget[] tools)
        Description copied from interface: IModule
        用于模块向父模块注册工具栏按钮
        Specified by:
        appendTools in interface IModule
        Parameters:
        tools - the tools
        Returns:
        the boolean
      • getParentModule

        public IModule getParentModule()
        Description copied from interface: IModule
        获取模块的父模块
        Specified by:
        getParentModule in interface IModule
        Returns:
        parent module
      • getModuleInfo

        public ModuleInfo getModuleInfo()
        Description copied from interface: IModule
        获取模块信息
        Specified by:
        getModuleInfo in interface IModule
        Returns:
        module info
      • getModuleCode

        public abstract String getModuleCode()
        获取模块代码
        Returns:
        module code
      • getRootWidget

        public com.google.gwt.user.client.ui.Widget getRootWidget()
        Description copied from interface: IModule
        返回模块的Widget.
        Specified by:
        getRootWidget in interface IModule
        Returns:
        the root widget
      • getModulePath

        public List<SwitchModuleData> getModulePath​(IModule module)
        Gets module path.
        Parameters:
        module - the module
        Returns:
        the module path
      • fireModuleEvent

        public void fireModuleEvent​(IModule module,
                                    CommonEvent event)
        向模块外发送事件
        Parameters:
        module -
        event -