Class Module

  • Direct Known Subclasses:
    ExternalModule

    public class Module
    extends Object
    A module is a application inside javlo.
    Author:
    Patrick Vandermaesen
    • Method Detail

      • loadAction

        protected void loadAction()
      • getModuleFolder

        public String getModuleFolder()
      • getActionName

        public String getActionName()
      • isMobile

        public boolean isMobile()
      • getName

        public String getName()
      • getHelpTitle

        public String getHelpTitle()
      • getHelpText

        public String getHelpText()
      • getRenderer

        public String getRenderer()
      • getMobileRenderer

        public String getMobileRenderer()
      • setRenderer

        public void setRenderer​(String renderer)
        set a renderer. Root folder is the root of the module.
        Parameters:
        renderer -
      • setAbsoluteRenderer

        public void setAbsoluteRenderer​(String renderer)
        set a renderer. Root folder is the root of webapps.
        Parameters:
        renderer -
      • restoreRenderer

        public void restoreRenderer()
        restore the renderer of the config file.
      • restoreAll

        public void restoreAll()
                        throws IOException
        restore all element to value defined in the config.
        Throws:
        IOException
      • restoreTitle

        public void restoreTitle()
      • restoreBoxes

        public void restoreBoxes()
      • getTitle

        public String getTitle()
      • isSidebar

        public boolean isSidebar()
      • setSidebar

        public void setSidebar​(boolean sidebar)
      • getNavigationTitle

        public String getNavigationTitle()
      • removeNavigation

        public boolean removeNavigation​(String name)
      • isBreadcrumb

        public boolean isBreadcrumb()
      • setBreadcrumb

        public void setBreadcrumb​(boolean breadcrumb)
      • getCSS

        public Collection<String> getCSS()
        return the list of URL to CSS files of the module.
        Returns:
      • getJS

        public Collection<String> getJS()
        return the list of URL to JS files of the module.
        Returns:
      • getToolsTitle

        public String getToolsTitle()
      • setToolsTitle

        public void setToolsTitle​(String toolsTitle)
      • getToolsRenderer

        public String getToolsRenderer()
      • setToolsRenderer

        public void setToolsRenderer​(String toolsRenderer)
      • restoreToolsRenderer

        public void restoreToolsRenderer()
        restore the tools renderer of the config file.
      • createSideBox

        public Module.Box createSideBox​(String name,
                                        String title,
                                        String renderer,
                                        boolean action)
        create a a new side box.
        Parameters:
        name -
        title -
        renderer -
        action -
        Returns:
        null if box with the same name already exist.
      • clearAllBoxes

        public void clearAllBoxes()
      • getBackUrl

        public String getBackUrl()
      • setBackUrl

        public void setBackUrl​(String backUrl)
      • getPath

        public String getPath()
      • clearBreadcrump

        public void clearBreadcrump()
      • getBreadcrumbTitle

        public String getBreadcrumbTitle()
      • setBreadcrumbTitle

        public void setBreadcrumbTitle​(String breadcrumbTitle)
      • isSearch

        public boolean isSearch()
      • setSearch

        public void setSearch​(boolean search)
      • getOrder

        public int getOrder()
      • getExcludeRoles

        public Set<String> getExcludeRoles()
      • getVersion

        public String getVersion()
      • getDescription

        public String getDescription()
      • getParent

        public String getParent()
      • setParent

        public void setParent​(String parent)
      • addChild

        public void addChild​(Module module)
      • getViewRenderer

        public String getViewRenderer()
      • setViewRenderer

        public void setViewRenderer​(String viewRenderer)
      • setNeeded

        public void setNeeded​(List<String> needed)
      • getRealPath

        public String getRealPath​(String path)
        return the real path of a file inside the module.
        Parameters:
        path - a path relative to module root.
        Returns:
        a absolute path.
      • addMainBox

        public void addMainBox​(String name,
                               String title,
                               String renderer,
                               boolean action)
      • setAttribute

        public void setAttribute​(String key,
                                 Object att)
      • main

        public static void main​(String[] args)
      • getFont

        public String getFont()
      • setFont

        public void setFont​(String font)