Class ModuleInfo

  • Direct Known Subclasses:
    ServerModuleInfo

    public class ModuleInfo
    extends Object
    模块对象.
    Author:
    zhangjianshe
    • Field Detail

      • order

        public int order
        排列顺序
      • name

        public String name
        The name.
      • code

        public String code
        The code.
      • unicode

        public String unicode
        自定义图标标识码 &#x [6323] 不包括前缀&#x
      • 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
        模块的父模块名称
      • custom

        public Boolean custom
        是否是引入组件
    • Constructor Detail

      • 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 name
        code - the code
        summary - the summary
        isPublic - the is public
        iconResource - the icon
        hash - the hash
        visible - 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 name
        code - the code
        summary - the summary
        isPublic - the is public
        iconResource - the icon
        hash - the hash
        visible - the visible
        group - the group
        unicode - the unicode
    • Method Detail

      • getTags

        public List<String> getTags()
        获取所有的标签
        Returns:
      • 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: