Class SpreadsheetThemeResolver

  • All Implemented Interfaces:
    org.zkoss.web.theme.ThemeResolver

    public class SpreadsheetThemeResolver
    extends Object
    implements org.zkoss.web.theme.ThemeResolver
    A standard implementation of ThemeResolver Retrieves and stores theme names via cookie
    Since:
    3.5.0
    Author:
    neillee, RaymondChao
    • Constructor Detail

      • SpreadsheetThemeResolver

        public SpreadsheetThemeResolver()
    • Method Detail

      • getTheme

        public String getTheme​(javax.servlet.http.HttpServletRequest request)
        Retrieves theme name from Cookie
        Specified by:
        getTheme in interface org.zkoss.web.theme.ThemeResolver
        Parameters:
        request -
        Returns:
        theme name stored in Cookie, or "" if not found
      • setTheme

        public void setTheme​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             String themeName)
        Stores theme name in Cookie
        Specified by:
        setTheme in interface org.zkoss.web.theme.ThemeResolver
        Parameters:
        request -
        response -
        themeName - theme name to be stored in Cookie