Package io.keikai.theme
Class SpreadsheetThemeResolver
- java.lang.Object
-
- io.keikai.theme.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 Summary
Constructors Constructor Description SpreadsheetThemeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTheme(javax.servlet.http.HttpServletRequest request)
Retrieves theme name from Cookievoid
setTheme(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String themeName)
Stores theme name in Cookie
-
-
-
Method Detail
-
getTheme
public String getTheme(javax.servlet.http.HttpServletRequest request)
Retrieves theme name from Cookie- Specified by:
getTheme
in interfaceorg.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 interfaceorg.zkoss.web.theme.ThemeResolver
- Parameters:
request
-response
-themeName
- theme name to be stored in Cookie
-
-