Package io.jenkins.plugins.thememanager
Class ThemeManagerPageDecorator
java.lang.Object
hudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
io.jenkins.plugins.thememanager.ThemeManagerPageDecorator
- All Implemented Interfaces:
ExtensionPoint,Describable<PageDecorator>,Saveable,Loadable,OnMaster
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.PageDecorator
ALLFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Deprecated.Deprecated.Only returns the light theme; usefindThemeSelection()instead.static ThemeManagerPageDecoratorget()Get the complete header HTML for all configured theme elements.getTheme()Deprecated.Only returns the light theme key; usefindThemeSelection()instead.booleanbooleanDeprecated.protected ObjectvoidsetDisableUserThemes(boolean disableUserThemes) voidsetTheme(ThemeManagerFactory theme) Deprecated.voidsetTheme(ThemeSelection theme) booleanFilter to only inject CSS into "normal" Jenkins pages.booleanMethods inherited from class hudson.model.PageDecorator
all, getDescriptor, getUrlMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
ThemeManagerPageDecorator
public ThemeManagerPageDecorator()
-
-
Method Details
-
readResolve
-
get
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) - Overrides:
configurein classDescriptor<PageDecorator>
-
getCategory
- Overrides:
getCategoryin classDescriptor<PageDecorator>
-
setTheme
-
setTheme
Deprecated. -
getTheme
-
isDisableUserThemes
public boolean isDisableUserThemes() -
setDisableUserThemes
@DataBoundSetter public void setDisableUserThemes(boolean disableUserThemes) -
findThemeSelection
-
findTheme
Deprecated.Only returns the light theme; usefindThemeSelection()orwindow.getThemeManagerPropertyin JavaScript instead. -
findThemeFactory
Deprecated.Only returns the light theme; usefindThemeSelection()instead. -
shouldShowAccountThemePicker
public boolean shouldShowAccountThemePicker() -
getHeaderHtml
Get the complete header HTML for all configured theme elements. -
getThemeKey
Deprecated.Only returns the light theme key; usefindThemeSelection()instead. -
isRespectSystemAppearance
Deprecated. -
shouldInjectCss
public boolean shouldInjectCss()Filter to only inject CSS into "normal" Jenkins pages. Some plugins replace the whole layout of Jenkins and we don't want to disturb them.- Returns:
- true if it is okay to inject CSS
-
findThemeSelection()orwindow.getThemeManagerPropertyin JavaScript instead.