Package com.jalios.jcms.accessibility
Class AccessibilityContextManager
- java.lang.Object
-
- com.jalios.jcms.accessibility.AccessibilityContextManager
-
public class AccessibilityContextManager extends java.lang.Object
Manage the list of AccessibilityContext- available in the site;
- available for a given HttpSession
The list of AccessibilityContext is determined by a list of properties. One AccessibilityContext is instantiated for each property : ui.accessibility.context.<id of the context>.jslist : a list of seperated js files to use in FO or ui.accessibility.context.<id of the context>.csslist : a list of seperated css files to use in FO or both. Label and description of this context are set by I18N properties : ui.accessibility.contextlabel.<id of the context>: Label of context ui.accessibility.contextdescription.<id of the context>: Detailled description of this context The default context is the only one if only one is defined, or the one that uses as id "standard".
- Since:
- JCMS-6.0
- Author:
- dissert
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AccessibilityContext>
getContexts()
AccessibilityContext
getCurrentAccessibilityContext(javax.servlet.http.HttpServletRequest request)
AccessibilityContext
getCurrentAccessibilityContext(javax.servlet.http.HttpSession session)
static AccessibilityContextManager
getInstance()
boolean
hasManyContexts()
boolean
setCurrentAccessibilityContext(javax.servlet.http.HttpServletRequest request, java.lang.String context)
boolean
setCurrentAccessibilityContext(javax.servlet.http.HttpSession session, java.lang.String context)
-
-
-
Method Detail
-
getInstance
public static AccessibilityContextManager getInstance()
-
hasManyContexts
public boolean hasManyContexts()
-
getContexts
public java.util.Collection<AccessibilityContext> getContexts()
-
getCurrentAccessibilityContext
public AccessibilityContext getCurrentAccessibilityContext(javax.servlet.http.HttpServletRequest request)
-
getCurrentAccessibilityContext
public AccessibilityContext getCurrentAccessibilityContext(javax.servlet.http.HttpSession session)
-
setCurrentAccessibilityContext
public boolean setCurrentAccessibilityContext(javax.servlet.http.HttpServletRequest request, java.lang.String context)
-
setCurrentAccessibilityContext
public boolean setCurrentAccessibilityContext(javax.servlet.http.HttpSession session, java.lang.String context)
-
-