|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zul.theme.StandardThemeProvider org.zkoss.zkex.theme.StandardThemeProvider
public class StandardThemeProvider
A standard implementation of ThemeProvider for ZK PE, which works with the Breeze series themes
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 | |
---|---|
StandardThemeProvider()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.zkoss.zul.theme.StandardThemeProvider |
---|
beforeWCS, getThemeFileSuffix, getThemeURIs, getWCSCacheControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardThemeProvider()
Method Detail |
---|
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)
, 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |