Package io.jmix.ui.theme
Class ThemeVariantsManager
java.lang.Object
io.jmix.ui.theme.ThemeVariantsManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected AppCookies
protected javax.servlet.ServletContext
protected static final String
protected static final String
protected static final String
protected static final String
protected UiThemeProperties
protected UserSettingService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
getCookieValue
(String name) protected String
getFullCookieName
(String prefix) protected String
loadUserSetting
(String name) protected void
removeCookie
(String name) protected void
removeUserSetting
(String name) protected void
saveUserSetting
(String name, String value) void
setThemeMode
(String themeMode) void
setThemeSize
(String themeSize)
-
Field Details
-
THEME_SIZE_USER_SETTING_NAME
- See Also:
-
THEME_MODE_USER_SETTING_NAME
- See Also:
-
THEME_MODE_COOKIE_PREFIX
- See Also:
-
THEME_SIZE_COOKIE_PREFIX
- See Also:
-
servletContext
@Autowired(required=false) protected javax.servlet.ServletContext servletContext -
userSettingService
-
themeProperties
-
cookies
-
-
Constructor Details
-
ThemeVariantsManager
public ThemeVariantsManager()
-
-
Method Details
-
getThemeModeCookieValue
-
setThemeMode
-
getThemeModeUserSetting
-
getThemeModeUserSettingOrDefault
-
getDefaultThemeMode
-
getDefaultThemeModeToUse
-
getThemeModeList
-
getThemeSizeCookieValue
-
setThemeSize
-
getThemeSizeUserSetting
-
getThemeSizeUserSettingOrDefault
-
getDefaultThemeSize
-
getDefaultThemeSizeToUse
-
getThemeSizeList
-
addCookie
-
getCookieValue
-
removeCookie
-
getFullCookieName
-
saveUserSetting
-
loadUserSetting
-
removeUserSetting
-