@Restricted(value=org.kohsuke.accmod.restrictions.Beta.class) public abstract class ThemeManagerFactory extends AbstractDescribableImpl<ThemeManagerFactory> implements ExtensionPoint
Since the user can configure this class, you must have a DataBoundConstructor.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
ThemeManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCssUrl()
Expected CSS URL assuming your CSS file is named after your theme.
|
ThemeManagerFactoryDescriptor |
getDescriptor() |
String |
getJavaScriptUrl()
Expected JavaScript URL assuming your JavaScript file is named after your theme.
|
abstract Theme |
getTheme() |
String |
toAssetUrl(String asset)
Arbitrary asset URL.
|
public abstract Theme getTheme()
public String getCssUrl()
ThemeManagerFactoryDescriptor.getThemeCssSuffix()
See toAssetUrl(String) for arbitrary files
public String toAssetUrl(String asset)
asset - additional-stylesheet.csspublic String getJavaScriptUrl()
ThemeManagerFactoryDescriptor.getThemeJsSuffix()
See toAssetUrl(String) for arbitrary files
public ThemeManagerFactoryDescriptor getDescriptor()
getDescriptor in interface Describable<ThemeManagerFactory>getDescriptor in class AbstractDescribableImpl<ThemeManagerFactory>Copyright © 2016–2022. All rights reserved.