public interface ThemeURIHandler
When a desktop is about to be rendered, modifyThemeURIs(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.util.ThemeURIModifier)
will
be called before ThemeProvider
to allow developer to add CSS/WCS files.
The earlier the ThemeURIHandler being added to Configuration is processed earlier.
(first-in-first-out).
Note: ThemeProvider
still has the final decision.
ThemeURIHandler will always be executed.
Modifier and Type | Method and Description |
---|---|
void |
modifyThemeURIs(Execution exec,
ThemeURIModifier modifier)
Allow developer to modify the theme uri list through
ThemeURIModifier when a desktop is about to be rendered. |
void modifyThemeURIs(Execution exec, ThemeURIModifier modifier)
ThemeURIModifier
when a desktop is about to be rendered.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.Copyright © 2005-2022 Potix Corporation. All Rights Reserved.