Package com.atlassian.confluence.themes
Class PluginThemeResource
java.lang.Object
com.atlassian.confluence.themes.PluginThemeResource
- All Implemented Interfaces:
ThemeResource
A theme stylesheet which is a resource in a plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.themes.ThemeResource
ThemeResource.Type
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginThemeResource
Creates a theme resource for a stylesheet in a dynamic plugin.Returns the plugin module key which this stylesheet belongs to, or the plugin key if the resource is specified at the plugin level.Returns the location of this resource as defined in the plugin xml.getName()
Returns the name of the stylesheet resource.getType()
boolean
isIeOnly()
Returns true iff theieonly
param is set to true in the plugin, false otherwise.static PluginThemeResource
javascript
(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor) Creates a theme resource for a JavaScript file in a dynamic plugin.toString()
-
Method Details
-
css
public static PluginThemeResource css(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor) Creates a theme resource for a stylesheet in a dynamic plugin.- Parameters:
completeModuleKey
- the key of the module or plugin which the stylesheet resource is inresourceDescriptor
- the resource descriptor for the stylesheet resource
-
javascript
public static PluginThemeResource javascript(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor) Creates a theme resource for a JavaScript file in a dynamic plugin.- Parameters:
completeModuleKey
- the key of the module or plugin which the stylesheet resource is inresourceDescriptor
- the resource descriptor for the stylesheet resource
-
getType
- Specified by:
getType
in interfaceThemeResource
-
getLocation
Description copied from interface:ThemeResource
Returns the location of this resource as defined in the plugin xml.- Specified by:
getLocation
in interfaceThemeResource
-
getCompleteModuleKey
Description copied from interface:ThemeResource
Returns the plugin module key which this stylesheet belongs to, or the plugin key if the resource is specified at the plugin level. Returns null if the resource is not part of a plugin.- Specified by:
getCompleteModuleKey
in interfaceThemeResource
-
getName
Description copied from interface:ThemeResource
Returns the name of the stylesheet resource.- Specified by:
getName
in interfaceThemeResource
-
toString
-
isIeOnly
public boolean isIeOnly()Description copied from interface:ThemeResource
Returns true iff theieonly
param is set to true in the plugin, false otherwise.- Specified by:
isIeOnly
in interfaceThemeResource
- Returns:
- true if the
ieonly
param is set to true.
-