Package cn.mapway.ui.client.mvc
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
Fields inherited from class cn.mapway.ui.client.widget.CommonEventComposite
TRUEFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIXFields inherited from interface cn.mapway.ui.client.mvc.window.IEnabled
ENABLED_ATTRIBUTEFields inherited from interface cn.mapway.ui.client.mvc.window.ISelectable
SELECT_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModuleCallback(IModuleCallback callback) 香摩卡注册事件回调booleanappendTools(com.google.gwt.user.client.ui.Widget tools) 用于模块向父模块注册工具栏按钮booleanappendTools(com.google.gwt.user.client.ui.Widget[] tools) 用于模块向父模块注册工具栏按钮voidfireMessage(MessageObject message) 发送消息记录voidfireModuleEvent(IModule module, CommonEvent event) 向模块外发送事件getHelpInfo(String helpId) 缺省不提供帮助信息abstract String获取模块代码static ModuleFactory模块工厂获取模块信息getModulePath(IModule module) Gets module path.获取模块参数.获取模块的父模块com.google.gwt.user.client.ui.Widget返回模块的Widget.com.google.gwt.user.client.ui.WidgetgetTools()boolean是否已经初始化了booleaninitialize(IModule parentModule, ModuleParameter parameter) 初始化模块.parseHashParameter(String hash) 解析HAsh参数 324525;238;32432 模块ID 模块参数 本函数的功能 提取第一个参数到hash中voidprocessServiceCode(RpcResult result) void卸载模块.booleanupdateTools(com.google.gwt.user.client.ui.Widget... tools) 用于模块向父模块注册工具栏按钮Methods inherited from class cn.mapway.ui.client.widget.CommonEventComposite
addAttributeReadyCallback, addAttributeStateChangeHandler, addCommonHandler, addTipDataHtml, addTipDataUrl, addTipDataWidget, clearBusEvent, clearTipData, commit, findAttributeByName, flatten, getAttributes, getAttributeSummary, getAttributeTitle, getComponentName, getEnabled, getId, getTipDataList, getTipVersion, getTitle, initAttributes, isAssign, isElementSelect, isSelected, isValidate, message, notifyAttributeReady, onEvent, onLoad, onUnload, processResult, registerBusEvent, removeAttributeReadyCallback, removeHandler, requireDefaultSize, setAllResource, setAllRole, setAttr, setComponentName, setElementSelect, setEnabled, setErrorMessage, setId, setReadonly, setResource, setRole, setSelect, setTipVersion, setTitle, setUserRoleProvider, showPageTip, unregisterBusEvent, updateAttributeValuesMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface cn.mapway.ui.client.mvc.attribute.IAttributesProvider
isGroupInitExpand
-
Constructor Details
-
BaseAbstractModule
public BaseAbstractModule()Instantiates a new Base abstract module.
-
-
Method Details
-
getModuleFactory
模块工厂- Returns:
- module factory
-
hasInitialized
public boolean hasInitialized()是否已经初始化了 -
initialize
Description copied from interface:IModule初始化模块.- Specified by:
initializein interfaceIModule- Parameters:
parentModule- the parent moduleparameter- the parameters- Returns:
- true 表示可以初始化本模块,false表示已经初始化子模块了,本模块可以不用初始化
-
parseHashParameter
解析HAsh参数 324525;238;32432 模块ID 模块参数 本函数的功能 提取第一个参数到hash中- Parameters:
hash-- Returns:
-
getHelpInfo
缺省不提供帮助信息- Specified by:
getHelpInfoin interfaceIHelpProvider- Parameters:
helpId- 暂时没有使用- Returns:
-
unInitialize
public void unInitialize()Description copied from interface:IModule卸载模块.- Specified by:
unInitializein interfaceIModule
-
getTools
public com.google.gwt.user.client.ui.Widget getTools()- Specified by:
getToolsin interfaceIToolsProvider
-
updateTools
public boolean updateTools(com.google.gwt.user.client.ui.Widget... tools) Description copied from interface:IModule用于模块向父模块注册工具栏按钮- Specified by:
updateToolsin interfaceIModule- 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:
appendToolsin interfaceIModule- 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:
appendToolsin interfaceIModule- Parameters:
tools- the tools- Returns:
- the boolean
-
getParentModule
Description copied from interface:IModule获取模块的父模块- Specified by:
getParentModulein interfaceIModule- Returns:
- parent module
-
getModuleInfo
Description copied from interface:IModule获取模块信息- Specified by:
getModuleInfoin interfaceIModule- Returns:
- module info
-
getModuleCode
获取模块代码- Returns:
- module code
-
getRootWidget
public com.google.gwt.user.client.ui.Widget getRootWidget()Description copied from interface:IModule返回模块的Widget.- Specified by:
getRootWidgetin interfaceIModule- Returns:
- the root widget
-
getModulePath
Gets module path.- Parameters:
module- the module- Returns:
- the module path
-
getParameters
Description copied from interface:IModule获取模块参数.- Specified by:
getParametersin interfaceIModule- Returns:
- parameters
-
addModuleCallback
Description copied from interface:IModule香摩卡注册事件回调- Specified by:
addModuleCallbackin interfaceIModule
-
fireMessage
Description copied from class:CommonEventComposite发送消息记录- Overrides:
fireMessagein classCommonEventComposite
-