com.atlassian.jira.web.util
Class CssSubstitutionWebResourceTransformer
java.lang.Object
com.atlassian.jira.web.util.CssSubstitutionWebResourceTransformer
- All Implemented Interfaces:
- com.atlassian.plugin.webresource.transformer.WebResourceTransformer
public class CssSubstitutionWebResourceTransformer
- extends Object
- implements com.atlassian.plugin.webresource.transformer.WebResourceTransformer
A resource transform that makes variable substitutions based on L&F settings.
Variables are prefixed with @. Variables will be:
- Of the form
@[a-zA-Z][a-zA-Z0-9_]*
(e.g. alphanumeric and underscores and starts with an alpha).
- Any @FOO token found that doesn't correspond to a known variable will be left as-is.
- @TextHeadingColour, @MenuBackgroundColour, etc.
- Copies of all the above with any leading hash # removed e.g. @TextHeadingColourNoHash, @MenuBackgroundColourNoHash
- @ContextPath. This will either be the empty string, or a string that starts with a slash and never ends in a slash.
- Since:
- v4.3
Method Summary |
com.atlassian.plugin.servlet.DownloadableResource |
transform(org.dom4j.Element configElement,
com.atlassian.plugin.elements.ResourceLocation location,
String filePath,
com.atlassian.plugin.servlet.DownloadableResource nextResource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CssSubstitutionWebResourceTransformer
public CssSubstitutionWebResourceTransformer(ApplicationProperties applicationProperties,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration)
transform
public com.atlassian.plugin.servlet.DownloadableResource transform(org.dom4j.Element configElement,
com.atlassian.plugin.elements.ResourceLocation location,
String filePath,
com.atlassian.plugin.servlet.DownloadableResource nextResource)
- Specified by:
transform
in interface com.atlassian.plugin.webresource.transformer.WebResourceTransformer
Copyright © 2002-2012 Atlassian. All Rights Reserved.