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 ThemeResourcepublic String getLocation()
ThemeResourcegetLocation in interface ThemeResourcegetLocation in interface ThemeStylesheetpublic String getCompleteModuleKey()
ThemeResourcegetCompleteModuleKey in interface ThemeResourcegetCompleteModuleKey in interface ThemeStylesheetpublic String getName()
ThemeResourcegetName in interface ThemeResourcegetName in interface ThemeStylesheetpublic boolean isIeOnly()
ThemeResourceieonly param is set to true in the plugin, false otherwise.isIeOnly in interface ThemeResourceisIeOnly in interface ThemeStylesheetieonly param is set to true.Copyright © 2003–2019 Atlassian. All rights reserved.