Package org.zkoss.zkmax.theme
Class StandardThemeProvider
java.lang.Object
org.zkoss.zul.theme.StandardThemeProvider
org.zkoss.zkex.theme.StandardThemeProvider
org.zkoss.zkmax.theme.StandardThemeProvider
- All Implemented Interfaces:
ThemeProvider
A standard implementation of ThemeProvider for ZK EE, which works with the
Breeze series themes, and also supports standard-derived tablet themes
- Since:
- 6.5.2
- Author:
- Neil
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.zkoss.zk.ui.util.ThemeProvider
ThemeProvider.Aide -
Field Summary
Fields inherited from class org.zkoss.zul.theme.StandardThemeProvider
DEFAULT_WCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeforeWidgetCSS(Execution exec, String uri) Called when a WCS (Widget CSS descriptor) file is about to load the CSS file associated with a widget.Methods inherited from class org.zkoss.zul.theme.StandardThemeProvider
beforeWCS, getThemeFileSuffix, getThemeURIs, getWCSCacheControl, isDefaultTheme
-
Constructor Details
-
StandardThemeProvider
public StandardThemeProvider()
-
-
Method Details
-
beforeWidgetCSS
Description copied from interface:ThemeProviderCalled when a WCS (Widget CSS descriptor) file is about to load the CSS file associated with a widget. This method then returns the real URI of the WCS file to load. If no need to change, just return theuriparameter.This method is usually overridden to load the CSS files from a different directory. For example,
String beforeWidgetCSS(Execution exec, String uri) { return uri.startsWith("~./") ? "~./foo/" + uri.substring(3): uri; }- Specified by:
beforeWidgetCSSin interfaceThemeProvider- Overrides:
beforeWidgetCSSin classStandardThemeProvider- Parameters:
exec- the current execution (never null), where you can retrieve the request ad response. However, unlikeThemeProvider.getThemeURIs(org.zkoss.zk.ui.Execution, java.util.List<java.lang.Object>), the desktop might not be available when this method is called.uri- the URI of the CSS file associated with a widget, e.g., ~./js/zul/wgt/css/a.css.dsp- Returns:
- the real URI of the CSS file to load If null is returned, the CSS file is ignored.
-