Class ThemeProvider.Aide

java.lang.Object
org.zkoss.zk.ui.util.ThemeProvider.Aide
Enclosing interface:
ThemeProvider

public static class ThemeProvider.Aide extends Object
Utilities to help the implementation of ThemeProvider to manipulate the URI such that it is able to use a different URI for a different theme.
  • Constructor Details

    • Aide

      public Aide()
  • Method Details

    • injectURI

      public static String injectURI(String uri, String fragment)
      Injects a fragment into the specified URI, and returns the injected URI.
      Parameters:
      uri - the URI to be modified
      fragment - the fragment that will be injected uri.
    • decodeURI

      public static String[] decodeURI(String uri)
      Decodes the injected URI and returns a two-element array. The first element is the original URI, while the second element is the fragment.

      Notice that it returns null if no injection is found.