@Component(value="ui_ThemeConstantsRepository")
public class ThemeConstantsRepository
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.env.Environment |
environment |
protected io.jmix.core.Resources |
resources |
protected java.util.Map<java.lang.String,ThemeConstants> |
themeConstantsMap |
Constructor and Description |
---|
ThemeConstantsRepository() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkInitialized() |
java.util.Set<java.lang.String> |
getAvailableThemes() |
ThemeConstants |
getConstants(java.lang.String themeName) |
protected void |
init() |
void |
loadThemeProperties(java.lang.String fileName,
java.util.Map<java.lang.String,java.lang.String> themeMap) |
java.lang.String |
parseThemeName(java.lang.String fileName) |
@Autowired protected io.jmix.core.Resources resources
@Autowired protected org.springframework.core.env.Environment environment
protected java.util.Map<java.lang.String,ThemeConstants> themeConstantsMap
protected void checkInitialized()
protected void init()
public void loadThemeProperties(java.lang.String fileName, java.util.Map<java.lang.String,java.lang.String> themeMap)
public java.lang.String parseThemeName(java.lang.String fileName)
@Nullable public ThemeConstants getConstants(java.lang.String themeName)
public java.util.Set<java.lang.String> getAvailableThemes()