public class StandardThemeProvider extends StandardThemeProvider
ThemeProvider.Aide
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TABLET_CSS
Deprecated.
As of release 9.6.0, please use TabletThemeURIHandler.DEFAULT_TABLET_CSS
|
static java.lang.String |
TABLET_THEME_DISABLED_KEY
Deprecated.
since 6.5.2, customizing tablet theme no longer requires this library property
|
DEFAULT_WCS
Constructor and Description |
---|
StandardThemeProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
beforeWidgetCSS(Execution exec,
java.lang.String uri)
Called when a WCS (Widget CSS descriptor) file is about to load the CSS file associated
with a widget.
|
beforeWCS, getThemeFileSuffix, getThemeURIs, getWCSCacheControl
public static final java.lang.String TABLET_THEME_DISABLED_KEY
@Deprecated public static final java.lang.String DEFAULT_TABLET_CSS
public java.lang.String beforeWidgetCSS(Execution exec, java.lang.String uri)
ThemeProvider
uri
parameter.
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;
}
beforeWidgetCSS
in interface ThemeProvider
beforeWidgetCSS
in class StandardThemeProvider
exec
- the current execution (never null), where you can retrieve
the request ad response. However, unlike
ThemeProvider.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.dspCopyright © 2005-2022 Potix Corporation. All Rights Reserved.