com.atlassian.jira.config.properties
Class LookAndFeelBean
java.lang.Object
com.atlassian.jira.config.properties.LookAndFeelBean
public class LookAndFeelBean
- extends Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookAndFeelBean
protected LookAndFeelBean(ApplicationProperties applicationProperties)
isCommonHeader
@Deprecated
public boolean isCommonHeader()
- Deprecated. in JIRA 6.0 -- the common header is always enabled.
- Returns:
- true
getCurrentHeader
protected CurrentHeader getCurrentHeader()
getInstance
public static LookAndFeelBean getInstance(ApplicationProperties ap)
stripHash
public String stripHash(String colour)
updateVersion
public void updateVersion(long oldVersion)
- Convenience method used by data import (see JRA-11680) to update version number to
the greater version number after the import (to make sure LF values wont be cached).
- Parameters:
oldVersion
- the previous version
getVersion
public long getVersion()
getLogoUrl
public String getLogoUrl()
getAbsoluteLogoUrl
public String getAbsoluteLogoUrl()
setLogoUrl
public void setLogoUrl(String logoUrl)
getLogoWidth
public String getLogoWidth()
getLogoPixelWidth
public String getLogoPixelWidth()
setLogoWidth
public void setLogoWidth(String logoWidth)
getLogoHeight
public String getLogoHeight()
getLogoPixelHeight
public String getLogoPixelHeight()
setLogoHeight
public void setLogoHeight(String logoHeight)
getFaviconUrl
public String getFaviconUrl()
setFaviconUrl
public void setFaviconUrl(String faviconUrl)
getFaviconWidth
public String getFaviconWidth()
getFaviconHeight
public String getFaviconHeight()
getFaviconHiResUrl
public String getFaviconHiResUrl()
setFaviconHiResUrl
public void setFaviconHiResUrl(String faviconUrl)
getFaviconHiResWidth
public String getFaviconHiResWidth()
getFaviconHiResHeight
public String getFaviconHiResHeight()
getTopBackgroundColour
public String getTopBackgroundColour()
setTopBackgroundColour
public void setTopBackgroundColour(String topBackgroundColour)
getTopTxtColour
public String getTopTxtColour()
setTopTxtColour
public void setTopTxtColour(String topTxtColour)
getTopHighlightColor
public String getTopHighlightColor()
setTopHighlightColor
public void setTopHighlightColor(String newValue)
getTopTextHighlightColor
public String getTopTextHighlightColor()
setTopTextHighlightColor
public void setTopTextHighlightColor(String newValue)
getTopSeparatorBackgroundColor
public String getTopSeparatorBackgroundColor()
setTopSeparatorBackgroundColor
public void setTopSeparatorBackgroundColor(String newValue)
getMenuTxtColour
public String getMenuTxtColour()
setMenuTxtColour
public void setMenuTxtColour(String menuTxtColour)
getMenuBackgroundColour
public String getMenuBackgroundColour()
setMenuBackgroundColour
public void setMenuBackgroundColour(String menuBackgroundColour)
getMenuSeparatorColour
public String getMenuSeparatorColour()
setMenuSeparatorColour
public void setMenuSeparatorColour(String menuSeparatorColour)
getTextHeadingColour
public String getTextHeadingColour()
setTextHeadingColour
public void setTextHeadingColour(String textHeadingColour)
getTextLinkColour
public String getTextLinkColour()
setTextLinkColour
public void setTextLinkColour(String textLinkColour)
getTextActiveLinkColour
public String getTextActiveLinkColour()
setTextActiveLinkColour
public void setTextActiveLinkColour(String textActiveLinkColour)
getHeroButtonTextColour
public String getHeroButtonTextColour()
setHeroButtonTextColour
public void setHeroButtonTextColour(String heroButtonTextColour)
getHeroButtonBaseBGColour
public String getHeroButtonBaseBGColour()
setHeroButtonBaseBGColour
public void setHeroButtonBaseBGColour(String heroButtonBaseBGColour)
getGadgetChromeColor
public String getGadgetChromeColor(String id)
setGadgetChromeColor
public void setGadgetChromeColor(String id,
String gadgetChromeColor)
getApplicationID
public String getApplicationID()
getDefaultBackedString
public String getDefaultBackedString(String key,
String defaultValue)
- 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
public String getDefaultBackedString(String key)
Copyright © 2002-2014 Atlassian. All Rights Reserved.