Package org.zkoss.zk.ui.util
Class ThemeProvider.Aide
- java.lang.Object
-
- org.zkoss.zk.ui.util.ThemeProvider.Aide
-
- Enclosing interface:
- ThemeProvider
public static class ThemeProvider.Aide extends java.lang.Object
Utilities to help the implementation ofThemeProvider
to manipulate the URI such that it is able to use a different URI for a different theme.
-
-
Constructor Summary
Constructors Constructor Description Aide()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
decodeURI(java.lang.String uri)
Decodes the injected URI and returns a two-element array.static java.lang.String
injectURI(java.lang.String uri, java.lang.String fragment)
Injects a fragment into the specified URI, and returns the injected URI.
-
-
-
Method Detail
-
injectURI
public static java.lang.String injectURI(java.lang.String uri, java.lang.String fragment)
Injects a fragment into the specified URI, and returns the injected URI.- Parameters:
uri
- the URI to be modifiedfragment
- the fragment that will be injecteduri
.
-
decodeURI
public static java.lang.String[] decodeURI(java.lang.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.
-
-