Package com.atlassian.confluence.themes
Class PluginThemeResource
- java.lang.Object
-
- com.atlassian.confluence.themes.PluginThemeResource
-
- All Implemented Interfaces:
ThemeResource
public class PluginThemeResource extends Object implements 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginThemeResourcecss(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor)Creates a theme resource for a stylesheet in a dynamic plugin.StringgetCompleteModuleKey()Returns the plugin module key which this stylesheet belongs to, or the plugin key if the resource is specified at the plugin level.StringgetLocation()Returns the location of this resource as defined in the plugin xml.StringgetName()Returns the name of the stylesheet resource.ThemeResource.TypegetType()booleanisIeOnly()Returns true iff theieonlyparam is set to true in the plugin, false otherwise.static PluginThemeResourcejavascript(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor)Creates a theme resource for a JavaScript file in a dynamic plugin.StringtoString()
-
-
-
Method Detail
-
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
public ThemeResource.Type getType()
- Specified by:
getTypein interfaceThemeResource
-
getLocation
public String getLocation()
Description copied from interface:ThemeResourceReturns the location of this resource as defined in the plugin xml.- Specified by:
getLocationin interfaceThemeResource
-
getCompleteModuleKey
public String getCompleteModuleKey()
Description copied from interface:ThemeResourceReturns 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:
getCompleteModuleKeyin interfaceThemeResource
-
getName
public String getName()
Description copied from interface:ThemeResourceReturns the name of the stylesheet resource.- Specified by:
getNamein interfaceThemeResource
-
isIeOnly
public boolean isIeOnly()
Description copied from interface:ThemeResourceReturns true iff theieonlyparam is set to true in the plugin, false otherwise.- Specified by:
isIeOnlyin interfaceThemeResource- Returns:
- true if the
ieonlyparam is set to true.
-
-