|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.html.simpleparser.ChainedProperties
public class ChainedProperties
Stores the hierarchy of tags along with the attributes of each tag.
Field Summary | |
---|---|
List<com.itextpdf.text.html.simpleparser.ChainedProperties.TagAttributes> |
chain
A list of chained properties representing the tag hierarchy. |
Constructor Summary | |
---|---|
ChainedProperties()
Creates a new instance of ChainedProperties |
Method Summary | |
---|---|
void |
addToChain(String tag,
Map<String,String> props)
Adds a tag and its corresponding properties to the chain. |
protected void |
adjustFontSize(Map<String,String> attrs)
If the properties contain a font size, the size may need to be adjusted based on font sizes higher in the hierarchy. |
String |
getProperty(String key)
Walks through the hierarchy (bottom-up) looking for a property key. |
boolean |
hasProperty(String key)
Walks through the hierarchy (bottom-up) looking for a property key. |
void |
removeChain(String tag)
Walks through the hierarchy (bottom-up) and removes the first occurrence of a tag that is encountered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public List<com.itextpdf.text.html.simpleparser.ChainedProperties.TagAttributes> chain
Constructor Detail |
---|
public ChainedProperties()
Method Detail |
---|
public String getProperty(String key)
key
- the key of the property
public boolean hasProperty(String key)
key
- the key of the property
public void addToChain(String tag, Map<String,String> props)
tag
- the tags that needs to be added to the chainprops
- the tag's attributespublic void removeChain(String tag)
tag
- the tag that needs to be removedprotected void adjustFontSize(Map<String,String> attrs)
attrs
- the attributes that may have to be updated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |