Package org.codefirst
Class SimpleThemeDecorator
java.lang.Object
hudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
org.codefirst.SimpleThemeDecorator
- All Implemented Interfaces:
- ExtensionPoint,- Describable<PageDecorator>,- Saveable,- Loadable,- OnMaster
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.model.DescriptorDescriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class hudson.model.PageDecoratorALLFields inherited from class hudson.model.Descriptorclazz
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Deprecated.Deprecated.Deprecated.Get the complete header HTML for all configured theme elements.getJsUrl()Deprecated.protected ObjectvoidsetCssRules(String cssRules) Deprecated.voidDeprecated.voidsetElements(List<ThemeElement> elements) voidsetFaviconUrl(String faviconUrl) Deprecated.voidDeprecated.booleanFilter to only inject CSS into "normal" Jenkins pages.Methods inherited from class hudson.model.PageDecoratorall, getDescriptor, getUrlMethods inherited from class hudson.model.DescriptoraddHelpFileRedirect, 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- 
SimpleThemeDecoratorpublic SimpleThemeDecorator()
 
- 
- 
Method Details- 
configurepublic boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
- configurein class- Descriptor<PageDecorator>
- Throws:
- Descriptor.FormException
 
- 
getCategory- Overrides:
- getCategoryin class- Descriptor<PageDecorator>
 
- 
getElements
- 
setElements
- 
getCssUrlDeprecated.
- 
setCssUrlDeprecated.
- 
getCssRulesDeprecated.
- 
setCssRulesDeprecated.
- 
getJsUrlDeprecated.
- 
setJsUrlDeprecated.
- 
getFaviconUrlDeprecated.
- 
setFaviconUrlDeprecated.
- 
readResolve
- 
getHeaderHtmlGet the complete header HTML for all configured theme elements.
- 
shouldInjectCsspublic 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
 
 
-