Class BaseAbstractModule

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
cn.mapway.ui.client.widget.CommonEventComposite
cn.mapway.ui.client.mvc.BaseAbstractModule
All Implemented Interfaces:
IEventHandler, HasAttributeStateChangeHandler, IAttributesProvider, IAttributeValuesUpdator, IAttributeInit, IHelpProvider, IModule, IToolsProvider, IPageTip, IEnabled, IErrorMessage, IProvideSize, ISelectable, Id, HasCommonHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
SubsystemModule, ToolbarModule, ToolbarModules

public abstract class BaseAbstractModule extends CommonEventComposite implements IModule, IToolsProvider, IHelpProvider
模块基类.
Author:
zhangjianshe
  • Constructor Details

    • BaseAbstractModule

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

    • 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
    • getParameters

      public ModuleParameter getParameters()
      Description copied from interface: IModule
      获取模块参数.
      Specified by:
      getParameters in interface IModule
      Returns:
      parameters
    • addModuleCallback

      public void addModuleCallback(IModuleCallback callback)
      Description copied from interface: IModule
      香摩卡注册事件回调
      Specified by:
      addModuleCallback in interface IModule
    • fireModuleEvent

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

      public void fireMessage(MessageObject message)
      Description copied from class: CommonEventComposite
      发送消息记录
      Overrides:
      fireMessage in class CommonEventComposite
    • processServiceCode

      public void processServiceCode(RpcResult result)
      Overrides:
      processServiceCode in class CommonEventComposite