Class ThemeVariantsManager

java.lang.Object
io.jmix.ui.theme.ThemeVariantsManager

@Component("ui_ThemeVariantsManager") public class ThemeVariantsManager extends Object
  • Field Details

    • THEME_SIZE_USER_SETTING_NAME

      protected static final String THEME_SIZE_USER_SETTING_NAME
      See Also:
    • THEME_MODE_USER_SETTING_NAME

      protected static final String THEME_MODE_USER_SETTING_NAME
      See Also:
    • servletContext

      @Autowired(required=false) protected javax.servlet.ServletContext servletContext
    • userSettingService

      @Autowired(required=false) protected UserSettingService userSettingService
    • themeProperties

      @Autowired protected UiThemeProperties themeProperties
    • cookies

      protected AppCookies cookies
  • Constructor Details

    • ThemeVariantsManager

      public ThemeVariantsManager()
  • Method Details

    • getThemeModeCookieValue

      @Nullable public String getThemeModeCookieValue()
    • setThemeMode

      public void setThemeMode(@Nullable String themeMode)
    • getThemeModeUserSetting

      @Nullable public String getThemeModeUserSetting()
    • getThemeModeUserSettingOrDefault

      public String getThemeModeUserSettingOrDefault()
    • getDefaultThemeMode

      public String getDefaultThemeMode()
    • getDefaultThemeModeToUse

      public String getDefaultThemeModeToUse()
    • getThemeModeList

      public List<String> getThemeModeList()
    • getThemeSizeCookieValue

      @Nullable public String getThemeSizeCookieValue()
    • setThemeSize

      public void setThemeSize(@Nullable String themeSize)
    • getThemeSizeUserSetting

      @Nullable public String getThemeSizeUserSetting()
    • getThemeSizeUserSettingOrDefault

      public String getThemeSizeUserSettingOrDefault()
    • getDefaultThemeSize

      public String getDefaultThemeSize()
    • getDefaultThemeSizeToUse

      public String getDefaultThemeSizeToUse()
    • getThemeSizeList

      public List<String> getThemeSizeList()
    • addCookie

      protected void addCookie(String name, String value)
    • getCookieValue

      @Nullable protected String getCookieValue(String name)
    • removeCookie

      protected void removeCookie(String name)
    • getFullCookieName

      protected String getFullCookieName(String prefix)
    • saveUserSetting

      protected void saveUserSetting(String name, String value)
    • loadUserSetting

      @Nullable protected String loadUserSetting(String name)
    • removeUserSetting

      protected void removeUserSetting(String name)