use of com.genexus.webpanels.WebSession in project JavaClasses by genexuslabs.
the class HttpContext method setTheme.
@SuppressWarnings("unchecked")
public int setTheme(String t) {
WebSession session = getWebSession();
if (session == null || t == null || t.equals(""))
return 0;
else {
HashMap<String, String> cThemeMap = (HashMap<String, String>) session.getObjectAttribute(GXTheme);
if (cThemeMap == null)
cThemeMap = new HashMap<>();
cThemeMap.put(theme, t);
session.setObjectAttribute(GXTheme, cThemeMap);
return 1;
}
}
Aggregations