Called 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 the
uri
parameter.
This method is usually overriden 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; }
@param exec the current executioin (never null), where you can retrievethe request ad responsne. However, unlike {@link #getThemeURIs}, the desktop might not be available when this method is called.
@param uri the URI of the CSS file associated with a widget, e.g.,~./js/zul/wgt/css/a.css.dsp
@return the real URI of the CSS file to loadIf null is returned, the CSS file is ignored.
@since 5.0.0