Echo.StyleSheet
| Constructor Summary | |
|---|---|
| Public | Echo.StyleSheet()Creates a new style sheet. |
| Instance Field Summary | |
|---|---|
| Internal | _nameToStyleMapMap between style names and type-name to style maps. |
| Internal | _renderCacheStyle 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. |
initialValues
- an optional mapping between style names
and maps between component types and stylesname
(String)
- the component's style namecomponentType
(String)
- the type of the componentgetRenderStyle() when a cached style cannot be found.
name
(String)
- the style namecomponentType
(String)
- the type of the componentname
(String)
- the style namecomponentType
(String)
- the component typename
(String)
- the style namecomponentType
(String)
- the component typethe
- style