Class LookAndFeelBean
java.lang.Object
com.atlassian.jira.config.properties.LookAndFeelBean
Bean mainly used to maintain a version number for all the menu colours. This allows us
to cache this information until it is updated (i.e.:version number is incremented).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
These are the "intended" colours for the Jira Header.static final class
These are the intended colours for the new common Header.static class
static class
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultBackedString
(String key, String defaultValue) Performs a lookup on the application properties for the specified key.static LookAndFeelBean
Deprecated.since 7.9.0.static LookAndFeelBean
getInstance
(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider) Deprecated.since 7.10.0.static LookAndFeelBean
getInstance
(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider, LogoProvider logoProvider) Deprecated.since 8.15.protected String
getValue
(com.atlassian.jira.config.properties.LookAndFeelBean.LnF config) boolean
Deprecated.in Jira 6.0 -- the common header is always enabled.void
setFaviconHiResUrl
(String faviconUrl) void
setFaviconUrl
(String faviconUrl) void
setGadgetChromeColor
(String id, String gadgetChromeColor) void
setHeroButtonBaseBGColour
(String heroButtonBaseBGColour) void
setHeroButtonTextColour
(String heroButtonTextColour) void
setLogoHeight
(String logoHeight) void
setLogoUrl
(String logoUrl) void
setLogoWidth
(String logoWidth) void
setMenuBackgroundColour
(String menuBackgroundColour) void
setMenuSeparatorColour
(String menuSeparatorColour) void
setMenuTxtColour
(String menuTxtColour) void
setTextActiveLinkColour
(String textActiveLinkColour) void
setTextHeadingColour
(String textHeadingColour) void
setTextLinkColour
(String textLinkColour) void
setTopBackgroundColour
(String topBackgroundColour) void
setTopHighlightColor
(String newValue) void
setTopSeparatorBackgroundColor
(String newValue) void
setTopTextHighlightColor
(String newValue) void
setTopTxtColour
(String topTxtColour) Deprecated.Since v7.0Deprecated.since 8.15.
-
Method Details
-
getInstance
Deprecated. -
getInstance
@Deprecated public static LookAndFeelBean getInstance(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider) Deprecated. -
getInstance
public static LookAndFeelBean getInstance(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider, LogoProvider logoProvider) -
isCommonHeader
Deprecated.in Jira 6.0 -- the common header is always enabled.- Returns:
- true
-
stripHash
Deprecated.Since v7.0- Parameters:
colour
-- Returns:
-
updateSettingsHash
Deprecated.since 8.15. UseUiSettingsStateManager.invalidateStateHash()
. -
getSettingsHash
Deprecated.since 8.15. UseUiSettingsStateManager.getStateHash()
. -
getConfigurationState
-
getLogoUrl
-
setLogoUrl
-
getAbsoluteLogoUrl
-
getLogoWidth
-
setLogoWidth
-
getLogoPixelWidth
-
getLogoHeight
-
setLogoHeight
-
getLogoPixelHeight
-
getFaviconUrl
-
setFaviconUrl
-
getFaviconWidth
-
getFaviconHeight
-
getFaviconHiResUrl
-
setFaviconHiResUrl
-
getFaviconHiResWidth
-
getFaviconHiResHeight
-
getTopBackgroundColour
-
setTopBackgroundColour
-
getTopTxtColour
-
setTopTxtColour
-
getTopHighlightColor
-
setTopHighlightColor
-
getValue
@Nullable protected String getValue(@Nonnull com.atlassian.jira.config.properties.LookAndFeelBean.LnF config) -
getTopTextHighlightColor
-
setTopTextHighlightColor
-
getTopSeparatorBackgroundColor
-
setTopSeparatorBackgroundColor
-
getMenuTxtColour
-
setMenuTxtColour
-
getMenuBackgroundColour
-
setMenuBackgroundColour
-
getMenuSeparatorColour
-
setMenuSeparatorColour
-
getTextHeadingColour
-
setTextHeadingColour
-
getTextLinkColour
-
setTextLinkColour
-
getTextActiveLinkColour
-
setTextActiveLinkColour
-
getHeroButtonTextColour
-
setHeroButtonTextColour
-
getHeroButtonBaseBGColour
-
setHeroButtonBaseBGColour
-
getGadgetChromeColor
-
setGadgetChromeColor
-
getApplicationID
-
getDefaultBackedString
Performs a lookup on the application properties for the specified key. If the key returns a null value, returns the default value specified. This would happen if no value exists in the database AND no value exists in the jira-application.properties file.- Parameters:
key
- the Application Properties key to look updefaultValue
- the value to return if the key yields null- Returns:
- the value of the key in the Application Properties, or the default value specified
-
getDefaultBackedString
-