Class A11yThemeURIHandler

java.lang.Object
org.zkoss.za11y.theme.A11yThemeURIHandler
All Implemented Interfaces:
ThemeURIHandler

public class A11yThemeURIHandler extends Object implements 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 Details

    • A11yThemeURIHandler

      public A11yThemeURIHandler()
  • Method Details

    • modifyThemeURIs

      public void modifyThemeURIs(Execution exec, ThemeURIModifier modifier)
      Description copied from interface: ThemeURIHandler
      Allow developer to modify the theme uri list through ThemeURIModifier when a desktop is about to be rendered.
      Specified by:
      modifyThemeURIs in interface ThemeURIHandler
      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 check Desktop.getDevice().
      modifier - ThemeURIModifier provide methods (e.g. add(StyleSheet uri)) to modify the theme uri list.