Class ApplicationBean.ThemeInfo

  • Enclosing class:
    ApplicationBean

    public static class ApplicationBean.ThemeInfo
    extends Object
    Hold the names of the available themes, the name of the default theme, and the base directory that contains the theme directories. The theme names are stored as simple strings, like "wilma". To be backwards compatible, we need to be able to test a string like "themes/wilma/ to see whether it is available, or to return the default directory in that form.
    • Constructor Detail

      • ThemeInfo

        public ThemeInfo​(File themesBaseDir,
                         String defaultThemeName,
                         List<String> themeNames)
    • Method Detail

      • themeNameFromDir

        public static String themeNameFromDir​(String themeDir)
      • isValidThemeDir

        public boolean isValidThemeDir​(String themeDir)
      • getDefaultThemeDir

        public String getDefaultThemeDir()
      • getThemesBaseDir

        public File getThemesBaseDir()
      • getDefaultThemeName

        public String getDefaultThemeName()
      • getThemeNames

        public List<String> getThemeNames()