Echo
StyleSheet
Class Hierarchy:

An application style sheet.

Constructor Summary
Public Echo.StyleSheet()
Creates a new style sheet.

Instance Field Summary
Internal _nameToStyleMap
Map between style names and type-name to style maps.
Internal _renderCache
Style cache mapping style names and type-name to style maps.

Instance Method Summary
Public getRenderStyle()
Returns the style that should be used for a component.
Internal _loadRenderStyle()
Creates a rendered style object for a specific style name and componentType and stores it in the cache.
Public getStyle()
Retrieves a specific style from the style sheet.
Public setStyle()
Stores a style in the style sheet.

Constructor Detail
Echo.StyleSheet()
Creates a new style sheet.
Parameters:
initialValues - an optional mapping between style names and maps between component types and styles

Instance Method Detail
getRenderStyle
Returns the style that should be used for a component.
Parameters:
name (String) - the component's style name
componentType (String) - the type of the component
Returns:
the style

_loadRenderStyle
Creates a rendered style object for a specific style name and componentType and stores it in the cache. This method is invoked by getRenderStyle() when a cached style cannot be found.
Parameters:
name (String) - the style name
componentType (String) - the type of the component
Returns:
the style

getStyle
Retrieves a specific style from the style sheet.
Parameters:
name (String) - the style name
componentType (String) - the component type
Returns:
the style

setStyle
Stores a style in the style sheet.
Parameters:
name (String) - the style name
componentType (String) - the component type
the - style