Package cn.mapway.ui.client.mvc
Class ModuleInfo
- java.lang.Object
-
- cn.mapway.ui.client.mvc.ModuleInfo
-
- Direct Known Subclasses:
ServerModuleInfo
public class ModuleInfo extends Object
模块对象.- Author:
- zhangjianshe
-
-
Field Summary
Fields Modifier and Type Field Description List<ModuleInfo>childrenStringcodeThe code.ICustomModuleCreatorcreatorBooleancustom是否是引入组件List<EventInfo>eventsStringgroup模块分组信息Stringhash模块Hash值com.google.gwt.resources.client.ImageResourceiconmodule icon data base64StringiconUrliconUrl link or svg String or Base64 ImagebooleanisPublic是否是公共模块booleanisVisibleThe Is visible.StringnameThe name.intorder排列顺序Stringparent模块的父模块名称Booleansingle是否单例创建.Stringsummarysumamry.List<String>tags模块标签List<String>themes模块标签Stringunicode自定义图标标识码 [6323] 不包括前缀
-
Constructor Summary
Constructors Constructor Description ModuleInfo(String name, String code, String summary, boolean isPublic, com.google.gwt.resources.client.ImageResource iconResource, String hash, boolean visible)Instantiates a new module item.ModuleInfo(String name, String code, String summary, boolean isPublic, com.google.gwt.resources.client.ImageResource iconResource, String hash, boolean visible, String group, String unicode)Instantiates a new Module info.ModuleInfo(String name, String code, String iconUrl, String unicode, String summary, ICustomModuleCreator creator)构建自定义组件
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTheme(String theme)ModuleInfocopy()Copy module info.booleanforTheme(String themeName)判断模块是否属于 某个主题List<EventInfo>getEvents()intgetOrder()List<String>getTags()获取所有的标签booleanhasTag(String tag)模块是否有 TAG标签voidsetOrder(int value)ModuleInfosetSingle(boolean single)设置单例模式.
-
-
-
Field Detail
-
order
public int order
排列顺序
-
name
public String name
The name.
-
code
public String code
The code.
-
unicode
public String unicode
自定义图标标识码 [6323] 不包括前缀
-
summary
public String summary
sumamry.
-
isPublic
public boolean isPublic
是否是公共模块
-
icon
public com.google.gwt.resources.client.ImageResource icon
module icon data base64
-
iconUrl
public String iconUrl
iconUrl link or svg String or Base64 Image
-
single
public Boolean single
是否单例创建.
-
hash
public String hash
模块Hash值
-
isVisible
public boolean isVisible
The Is visible.
-
group
public String group
模块分组信息
-
parent
public String parent
模块的父模块名称
-
children
public List<ModuleInfo> children
-
custom
public Boolean custom
是否是引入组件
-
creator
public ICustomModuleCreator creator
-
-
Constructor Detail
-
ModuleInfo
public ModuleInfo(String name, String code, String iconUrl, String unicode, String summary, ICustomModuleCreator creator)
构建自定义组件- Parameters:
name-code-summary-creator-
-
ModuleInfo
public ModuleInfo(String name, String code, String summary, boolean isPublic, com.google.gwt.resources.client.ImageResource iconResource, String hash, boolean visible)
Instantiates a new module item.- Parameters:
name- the namecode- the codesummary- the summaryisPublic- the is publiciconResource- the iconhash- the hashvisible- the visible
-
ModuleInfo
public ModuleInfo(String name, String code, String summary, boolean isPublic, com.google.gwt.resources.client.ImageResource iconResource, String hash, boolean visible, String group, String unicode)
Instantiates a new Module info.- Parameters:
name- the namecode- the codesummary- the summaryisPublic- the is publiciconResource- the iconhash- the hashvisible- the visiblegroup- the groupunicode- the unicode
-
-
Method Detail
-
copy
public ModuleInfo copy()
Copy module info.- Returns:
- the module info
-
addTheme
public void addTheme(String theme)
-
setSingle
public ModuleInfo setSingle(boolean single)
设置单例模式.- Parameters:
single- the single- Returns:
- single
-
getOrder
public int getOrder()
-
setOrder
public void setOrder(int value)
-
forTheme
public boolean forTheme(String themeName)
判断模块是否属于 某个主题- Parameters:
themeName-- Returns:
-
hasTag
public boolean hasTag(String tag)
模块是否有 TAG标签- Parameters:
tag-- Returns:
-
-