public class PluginThemeResource extends Object implements ThemeResource, ThemeStylesheet
ThemeResource.Type
Modifier and Type | Method and Description |
---|---|
static PluginThemeResource |
css(String completeModuleKey,
com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor)
Creates a theme resource for a stylesheet in a dynamic plugin.
|
String |
getCompleteModuleKey()
Returns the plugin module key which this stylesheet belongs to, or the plugin key if the resource
is specified at the plugin level.
|
String |
getLocation()
Returns the location of this resource as defined in the plugin xml.
|
String |
getName()
Returns the name of the stylesheet resource.
|
ThemeResource.Type |
getType() |
boolean |
isIeOnly()
Returns true iff the
ieonly 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.
|
String |
toString() |
public static PluginThemeResource css(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor)
completeModuleKey
- the key of the module or plugin which the stylesheet resource is inresourceDescriptor
- the resource descriptor for the stylesheet resourcepublic static PluginThemeResource javascript(String completeModuleKey, com.atlassian.plugin.elements.ResourceDescriptor resourceDescriptor)
completeModuleKey
- the key of the module or plugin which the stylesheet resource is inresourceDescriptor
- the resource descriptor for the stylesheet resourcepublic ThemeResource.Type getType()
getType
in interface ThemeResource
public String getLocation()
ThemeResource
getLocation
in interface ThemeResource
getLocation
in interface ThemeStylesheet
public String getCompleteModuleKey()
ThemeResource
getCompleteModuleKey
in interface ThemeResource
getCompleteModuleKey
in interface ThemeStylesheet
public String getName()
ThemeResource
getName
in interface ThemeResource
getName
in interface ThemeStylesheet
public boolean isIeOnly()
ThemeResource
ieonly
param is set to true in the plugin, false otherwise.isIeOnly
in interface ThemeResource
isIeOnly
in interface ThemeStylesheet
ieonly
param is set to true.Copyright © 2003–2017 Atlassian. All rights reserved.