Package org.zkoss.za11y.theme
Class A11yThemeURIHandler
java.lang.Object
org.zkoss.za11y.theme.A11yThemeURIHandler
- All Implemented Interfaces:
ThemeURIHandler
Adds za11y's stylesheet for the current theme, as listed in
metainfo/org/zkoss/za11y/theme/themes.properties, and nothing for a theme not listed,
so za11y's CSS cannot affect a theme it was not written for.
The sheet goes after the framework's and addons' sheets and before an application's own,
and <disable-theme-uri> still removes it.
- Since:
- 11.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmodifyThemeURIs(Execution exec, ThemeURIModifier modifier) Allow developer to modify the theme uri list throughThemeURIModifierwhen a desktop is about to be rendered.
-
Constructor Details
-
A11yThemeURIHandler
public A11yThemeURIHandler()
-
-
Method Details
-
modifyThemeURIs
Description copied from interface:ThemeURIHandlerAllow developer to modify the theme uri list throughThemeURIModifierwhen a desktop is about to be rendered.- Specified by:
modifyThemeURIsin interfaceThemeURIHandler- Parameters:
exec- the current execution (never null), where you can retrieve the desktop, request and response. Note: if your Web application supports multiple devices, you have to checkDesktop.getDevice().modifier-ThemeURIModifierprovide methods (e.g. add(StyleSheet uri)) to modify the theme uri list.
-