public class StyleReference extends Object
| Constructor and Description |
|---|
StyleReference(UserAgentCallback userAgent) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushAllStyleSheets()
Deprecated.
|
void |
flushStyleSheets()
Deprecated.
|
Map<String,org.w3c.dom.css.CSSPrimitiveValue> |
getCascadedPropertiesMap(Element e)
Deprecated.
|
CascadedStyle |
getCascadedStyle(Element e,
boolean restyle)
Gets the CascadedStyle for an element.
|
List<FontFaceRule> |
getFontFaceRules() |
PageInfo |
getPageStyle(String pageName,
String pseudoPage) |
CascadedStyle |
getPseudoElementStyle(Node node,
String pseudoElement)
Gets the pseudoElementStyle attribute of the StyleReference object
|
boolean |
isHoverStyled(Element e) |
void |
removeStyle(Element e)
Deprecated.
|
void |
setDocumentContext(SharedContext context,
NamespaceHandler nsh,
Document doc,
UserInterface ui)
Sets the documentContext attribute of the StyleReference object
|
void |
setSupportCMYKColors(boolean b) |
void |
setUserAgentCallback(UserAgentCallback userAgentCallback) |
public StyleReference(UserAgentCallback userAgent)
public void setDocumentContext(SharedContext context, NamespaceHandler nsh, Document doc, UserInterface ui)
context - The new documentContext valuensh - The new documentContext valuedoc - The new documentContext valueui - public boolean isHoverStyled(Element e)
@Deprecated public Map<String,org.w3c.dom.css.CSSPrimitiveValue> getCascadedPropertiesMap(Element e)
e - The DOM Element for which to find propertiespublic CascadedStyle getPseudoElementStyle(Node node, String pseudoElement)
node - PARAMpseudoElement - PARAMpublic CascadedStyle getCascadedStyle(Element e, boolean restyle)
e - The elementrestyle - @Deprecated public void flushStyleSheets()
StylesheetFactory each run.@Deprecated public void flushAllStyleSheets()
@Deprecated public void removeStyle(Element e)
public List<FontFaceRule> getFontFaceRules()
public void setUserAgentCallback(UserAgentCallback userAgentCallback)
public void setSupportCMYKColors(boolean b)
Copyright © 2018. All rights reserved.