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
,OnMaster
@Extension @Symbol("simpleTheme") public class SimpleThemeDecorator extends PageDecorator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.PageDecorator
ALL
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description SimpleThemeDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
GlobalConfigurationCategory
getCategory()
String
getCssRules()
Deprecated.String
getCssUrl()
Deprecated.List<ThemeElement>
getElements()
String
getFaviconUrl()
Deprecated.String
getHeaderHtml()
Get the complete header HTML for all configured theme elements.String
getJsUrl()
Deprecated.protected Object
readResolve()
void
setCssRules(String cssRules)
Deprecated.void
setCssUrl(String cssUrl)
Deprecated.void
setElements(List<ThemeElement> elements)
void
setFaviconUrl(String faviconUrl)
Deprecated.void
setJsUrl(String jsUrl)
Deprecated.boolean
shouldInjectCss()
Filter to only inject CSS into "normal" Jenkins pages.-
Methods inherited from class hudson.model.PageDecorator
all, getDescriptor, getUrl
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<PageDecorator>
- Throws:
Descriptor.FormException
-
getCategory
@NonNull public GlobalConfigurationCategory getCategory()
- Overrides:
getCategory
in classDescriptor<PageDecorator>
-
getElements
public List<ThemeElement> getElements()
-
setElements
@DataBoundSetter public void setElements(List<ThemeElement> elements)
-
getCssUrl
@Deprecated public String getCssUrl()
Deprecated.
-
setCssUrl
@DataBoundSetter @Deprecated public void setCssUrl(String cssUrl)
Deprecated.
-
getCssRules
@Deprecated public String getCssRules()
Deprecated.
-
setCssRules
@DataBoundSetter @Deprecated public void setCssRules(String cssRules)
Deprecated.
-
getJsUrl
@Deprecated public String getJsUrl()
Deprecated.
-
setJsUrl
@DataBoundSetter @Deprecated public void setJsUrl(String jsUrl)
Deprecated.
-
getFaviconUrl
@Deprecated public String getFaviconUrl()
Deprecated.
-
setFaviconUrl
@DataBoundSetter @Deprecated public void setFaviconUrl(String faviconUrl)
Deprecated.
-
readResolve
protected Object readResolve()
-
getHeaderHtml
public String getHeaderHtml()
Get the complete header HTML for all configured theme elements.
-
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
-
-