public class

PluginThemeResource

extends Object
implements ThemeResource ThemeStylesheet
java.lang.Object
   ↳ com.atlassian.confluence.themes.PluginThemeResource

Class Overview

A theme stylesheet which is a resource in a plugin.

Summary

Public Methods
static PluginThemeResource css(String completeModuleKey, 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, ResourceDescriptor resourceDescriptor)
Creates a theme resource for a JavaScript file in a dynamic plugin.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.themes.ThemeResource
From interface com.atlassian.confluence.themes.ThemeStylesheet

Public Methods

public static PluginThemeResource css (String completeModuleKey, 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 in
resourceDescriptor the resource descriptor for the stylesheet resource

public 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. Returns null if the resource is not part of a plugin.

public String getLocation ()

Returns the location of this resource as defined in the plugin xml.

public String getName ()

Returns the name of the stylesheet resource.

public ThemeResource.Type getType ()

public boolean isIeOnly ()

Returns true iff the ieonly param is set to true in the plugin, false otherwise.

Returns
  • true if the ieonly param is set to true.

public static PluginThemeResource javascript (String completeModuleKey, 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 in
resourceDescriptor the resource descriptor for the stylesheet resource

public String toString ()