Search in sources :

Example 6 with WebSession

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;
    }
}
Also used : WebSession(com.genexus.webpanels.WebSession) HashMap(java.util.HashMap)

Aggregations

WebSession (com.genexus.webpanels.WebSession)6 HttpContext (com.genexus.internet.HttpContext)4 HttpRequest (com.genexus.internet.HttpRequest)1 HashMap (java.util.HashMap)1