public class

LookAndFeelBean

extends Object
java.lang.Object
   ↳ com.atlassian.jira.config.properties.LookAndFeelBean

Class Overview

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).

Summary

Nested Classes
class LookAndFeelBean.DefaultColours These are the "intended" colours for the JIRA Header. 
class LookAndFeelBean.DefaultCommonColours These are the intended colours for the new common Header. 
class LookAndFeelBean.DefaultFaviconDimensions  
class LookAndFeelBean.LookAndFeelChangedEvent  
Protected Constructors
LookAndFeelBean(ApplicationProperties applicationProperties)
Public Methods
String getAbsoluteLogoUrl()
String getApplicationID()
String getDefaultBackedString(String key)
String getDefaultBackedString(String key, String defaultValue)
Performs a lookup on the application properties for the specified key.
String getFaviconHeight()
String getFaviconHiResHeight()
String getFaviconHiResUrl()
String getFaviconHiResWidth()
String getFaviconUrl()
String getFaviconWidth()
String getGadgetChromeColor(String id)
String getHeroButtonBaseBGColour()
String getHeroButtonTextColour()
static LookAndFeelBean getInstance(ApplicationProperties ap)
String getLogoHeight()
String getLogoPixelHeight()
String getLogoPixelWidth()
String getLogoUrl()
String getLogoWidth()
String getMenuBackgroundColour()
String getMenuSeparatorColour()
String getMenuTxtColour()
String getTextActiveLinkColour()
String getTextHeadingColour()
String getTextLinkColour()
String getTopBackgroundColour()
String getTopHighlightColor()
String getTopSeparatorBackgroundColor()
String getTopTextHighlightColor()
String getTopTxtColour()
long getVersion()
@Deprecated boolean isCommonHeader()
This method is 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)
String stripHash(String colour)
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).
Protected Methods
CurrentHeader getCurrentHeader()
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected LookAndFeelBean (ApplicationProperties applicationProperties)

Public Methods

public String getAbsoluteLogoUrl ()

public String getApplicationID ()

public String getDefaultBackedString (String key)

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 up
defaultValue the value to return if the key yields null
Returns
  • the value of the key in the Application Properties, or the default value specified

public String getFaviconHeight ()

public String getFaviconHiResHeight ()

public String getFaviconHiResUrl ()

public String getFaviconHiResWidth ()

public String getFaviconUrl ()

public String getFaviconWidth ()

public String getGadgetChromeColor (String id)

public String getHeroButtonBaseBGColour ()

public String getHeroButtonTextColour ()

public static LookAndFeelBean getInstance (ApplicationProperties ap)

public String getLogoHeight ()

public String getLogoPixelHeight ()

public String getLogoPixelWidth ()

public String getLogoUrl ()

public String getLogoWidth ()

public String getMenuBackgroundColour ()

public String getMenuSeparatorColour ()

public String getMenuTxtColour ()

public String getTextActiveLinkColour ()

public String getTextHeadingColour ()

public String getTextLinkColour ()

public String getTopBackgroundColour ()

public String getTopHighlightColor ()

public String getTopSeparatorBackgroundColor ()

public String getTopTextHighlightColor ()

public String getTopTxtColour ()

public long getVersion ()

@Deprecated public boolean isCommonHeader ()

This method is deprecated.
in JIRA 6.0 -- the common header is always enabled.

Returns
  • true

public void setFaviconHiResUrl (String faviconUrl)

public void setFaviconUrl (String faviconUrl)

public void setGadgetChromeColor (String id, String gadgetChromeColor)

public void setHeroButtonBaseBGColour (String heroButtonBaseBGColour)

public void setHeroButtonTextColour (String heroButtonTextColour)

public void setLogoHeight (String logoHeight)

public void setLogoUrl (String logoUrl)

public void setLogoWidth (String logoWidth)

public void setMenuBackgroundColour (String menuBackgroundColour)

public void setMenuSeparatorColour (String menuSeparatorColour)

public void setMenuTxtColour (String menuTxtColour)

public void setTextActiveLinkColour (String textActiveLinkColour)

public void setTextHeadingColour (String textHeadingColour)

public void setTextLinkColour (String textLinkColour)

public void setTopBackgroundColour (String topBackgroundColour)

public void setTopHighlightColor (String newValue)

public void setTopSeparatorBackgroundColor (String newValue)

public void setTopTextHighlightColor (String newValue)

public void setTopTxtColour (String topTxtColour)

public String stripHash (String colour)

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

Protected Methods

protected CurrentHeader getCurrentHeader ()