@Deprecated public class StyleSheet extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Map<String,String>> |
classMap
Deprecated.
Map storing possible names of the "class" attribute and their corresponding styles.
|
protected Map<String,Map<String,String>> |
tagMap
Deprecated.
Map storing tags and their corresponding styles.
|
Constructor and Description |
---|
StyleSheet()
Deprecated.
Creates a new instance of StyleSheet
|
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(String tag, Map<String,String> attrs)
Deprecated.
Resolves the styles based on the tag name and the value of the class attribute.
|
void |
loadStyle(String className, HashMap<String,String> attrs)
Deprecated.
Associates a Map containing styles with a class name.
|
void |
loadStyle(String className, String key, String value)
Deprecated.
Adds an extra style key-value pair to the styles Map of a specific tag
|
void |
loadTagStyle(String tag, Map<String,String> attrs)
Deprecated.
Associates a Map containing styles with a tag.
|
void |
loadTagStyle(String tag, String key, String value)
Deprecated.
Adds an extra style key-value pair to the styles Map of a specific tag
|
static void |
resolveStyleAttribute(Map<String,String> h, ChainedProperties chain)
Deprecated.
Method contributed by Lubos Strapko
|
protected Map<String,Map<String,String>> tagMap
public void loadTagStyle(String tag, Map<String,String> attrs)
tag
- the name of the HTML/XML tag
attrs
- a map containing styles
public void loadTagStyle(String tag, String key, String value)
tag
- the name of the HTML/XML tag
key
- the key specifying a specific style
value
- the value defining the style
public void loadStyle(String className, HashMap<String,String> attrs)
className
- the value of the class attribute
attrs
- a map containing styles
public void loadStyle(String className, String key, String value)
className
- the name of the HTML/XML tag
key
- the key specifying a specific style
value
- the value defining the style
public void applyStyle(String tag, Map<String,String> attrs)
tag
- the tag that needs to be resolved
attrs
- existing style map that will be updated
public static void resolveStyleAttribute(Map<String,String> h, ChainedProperties chain)
h
-
chain
-
Copyright © 1998–2019. All rights reserved.