oracle.cabo.share.config
Class AccessibilityMode
java.lang.Object
|
+--oracle.cabo.share.config.AccessibilityMode
- public final class AccessibilityMode
- extends java.lang.Object
This class is used to control the level of accessibility support in an application. Currently three modes of accessibility are supported:
DEFAULT_MODE
- At this level, code that is strictly accessible must be produced.
INACCESSIBLE_MODE
- At this level, code may be optimized to strip out accessibility-specific constructs.
SCREEN_READER_MODE
- At this level, content specific for screen readers may be rendered.
The current mode is obtained by calling Configuration.getProperty(Object key)
and using Configuration.ACCESSIBILITY_MODE
as the key.
- See Also:
Configuration
, Customization
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_MODE
public static final AccessibilityMode DEFAULT_MODE
- This value indicates an accessible level of accessibility support.
INACCESSIBLE_MODE
public static final AccessibilityMode INACCESSIBLE_MODE
- This value indicates that accessibility is not required. All HTML pertaining to accessibility may be stripped from the output.
-
- See Also:
isInaccessibleMode(Configuration)
SCREEN_READER_MODE
public static final AccessibilityMode SCREEN_READER_MODE
- This value indicates that the content must be catered specifically for screen readers (eg: JAWS). This mode will also generate accessible ccontent.
-
- See Also:
isScreenReaderMode(Configuration)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
isInaccessibleMode
public static boolean isInaccessibleMode(Configuration config)
-
- Parameters:
config
- the Configuration object to examine
- Returns:
- true if the accessiblity mode set on the Configuration object is at the inaccessible level.
- See Also:
INACCESSIBLE_MODE
, Configuration.ACCESSIBILITY_MODE
isScreenReaderMode
public static boolean isScreenReaderMode(Configuration config)
-
- Parameters:
config
- the Configuration object to examine
- Returns:
- true if the accessiblity mode set on the Configuration object is at the screen reader level.
- See Also:
SCREEN_READER_MODE
, Configuration.ACCESSIBILITY_MODE