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

@Extension @Symbol("themeManager") public class ThemeManagerPageDecorator extends PageDecorator
  • Constructor Details

    • ThemeManagerPageDecorator

      public ThemeManagerPageDecorator()
  • Method Details

    • readResolve

      protected Object readResolve()
    • get

      public static ThemeManagerPageDecorator get()
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData)
      Overrides:
      configure in class Descriptor<PageDecorator>
    • getCategory

      @NonNull public GlobalConfigurationCategory getCategory()
      Overrides:
      getCategory in class Descriptor<PageDecorator>
    • setTheme

      @DataBoundSetter public void setTheme(ThemeSelection theme)
    • setTheme

      @Deprecated public void setTheme(ThemeManagerFactory theme)
      Deprecated.
    • getTheme

      public ThemeSelection getTheme()
    • isDisableUserThemes

      public boolean isDisableUserThemes()
    • setDisableUserThemes

      @DataBoundSetter public void setDisableUserThemes(boolean disableUserThemes)
    • findThemeSelection

      @NonNull public ThemeSelection findThemeSelection()
    • findTheme

      @Deprecated @NonNull public Theme findTheme()
      Deprecated.
      Only returns the light theme; use findThemeSelection() or window.getThemeManagerProperty in JavaScript instead.
    • findThemeFactory

      @Deprecated @NonNull public ThemeManagerFactory findThemeFactory()
      Deprecated.
      Only returns the light theme; use findThemeSelection() instead.
    • shouldShowAccountThemePicker

      public boolean shouldShowAccountThemePicker()
    • getHeaderHtml

      public String getHeaderHtml()
      Get the complete header HTML for all configured theme elements.
    • getThemeKey

      @Deprecated public String getThemeKey()
      Deprecated.
      Only returns the light theme key; use findThemeSelection() instead.
    • isRespectSystemAppearance

      @Deprecated public boolean 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