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