com.atlassian.confluence.themes
Class BaseColourScheme

java.lang.Object
  extended by com.atlassian.confluence.themes.AbstractColourScheme
      extended by com.atlassian.confluence.themes.BaseColourScheme
All Implemented Interfaces:
ColourScheme, Serializable

public class BaseColourScheme
extends AbstractColourScheme
implements Serializable

A Confluence L&F colour-scheme that is editable - colours are stored in a map in memory.

Generally this class should only be used when creating or editing colour-schemes, the ColourSchemeManager should be used when retrieving schemes to use.

See Also:
Serialized Form

Field Summary
protected  Map<String,String> colours
           
 
Fields inherited from interface com.atlassian.confluence.themes.ColourScheme
BORDER, BREADCRUMBS_TEXT, HEADER_BUTTON_BASE_BACKGROUND, HEADER_BUTTON_TEXT, HEADING_TEXT, LINK, MENU_ITEM_SELECTED_BACKGROUND, MENU_ITEM_SELECTED_TEXT, MENU_ITEM_TEXT, MENU_SELECTED_BACKGROUND, NAV_BACKGROUND, NAV_SELECTED_BACKGROUND, NAV_SELECTED_TEXT, NAV_TEXT, ORDERED_KEYS, SPACE_NAME, TOP_BAR, TOP_BAR_MENU_ITEM_TEXT, TOP_BAR_MENU_SELECTED_BACKGROUND, TOP_BAR_MENU_SELECTED_TEXT
 
Constructor Summary
BaseColourScheme()
           
BaseColourScheme(ColourScheme colourScheme)
          Copying Constructor.
BaseColourScheme(Map colours)
           
 
Method Summary
 String get(String colourName)
           
 void set(String colourName, String value)
           
 
Methods inherited from class com.atlassian.confluence.themes.AbstractColourScheme
get, hslToRgb, rgbToHsl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colours

protected Map<String,String> colours
Constructor Detail

BaseColourScheme

public BaseColourScheme()

BaseColourScheme

public BaseColourScheme(ColourScheme colourScheme)
Copying Constructor. Allows a base colour scheme (that is editable due to setter methods) to be created from a non-editable colour scheme (such as the default colour scheme)

Parameters:
colourScheme -

BaseColourScheme

public BaseColourScheme(Map colours)
Method Detail

set

public void set(String colourName,
                String value)

get

public String get(String colourName)
Specified by:
get in interface ColourScheme


Copyright © 2003-2013 Atlassian. All Rights Reserved.