EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.style
Class Background

java.lang.Object
  extended by echopoint.style.Background

public class Background
extends Object

A utility class used to enforce a application wide standard background colour for components that need a standard background colour. Note that this class uses ColorKit.makeColor(String) to initialise the colour. Please use a format as documented.

The default colour to use may be specified as a system property or as a servlet init-param if using the echopoint.Servlet in your application. The key to use is echopoint.style.Background.value.

Version:
$Id: Background.java 208 2009-05-25 02:40:35Z sptrakesh $
Author:
Rakesh Vidyadharan 2009-05-14

Field Summary
static String BACKGROUND
          The default background value to use if not configured.
static String BACKGROUND_KEY
          The property used to configure the default colour.
 
Constructor Summary
Background()
           
 
Method Summary
static Color getInstance()
          Return the default background colour.
static void setBackground(String value)
          Set the default colour value to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKGROUND_KEY

public static final String BACKGROUND_KEY
The property used to configure the default colour.


BACKGROUND

public static final String BACKGROUND
The default background value to use if not configured. "#32476a"

See Also:
Constant Field Values
Constructor Detail

Background

public Background()
Method Detail

getInstance

public static Color getInstance()
Return the default background colour.

Returns:
The default background colour to use.

setBackground

public static void setBackground(String value)
Set the default colour value to use. Note that this must be set before the style sheet is loaded to be fully useful.

Parameters:
value - The colour value to use.

EchoPoint API - 3.0.0b5
App Webcontainer