public class StyleReference extends Object
| Constructor and Description |
|---|
StyleReference(UserAgentCallback userAgent) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,CSSPrimitiveValue> |
getCascadedPropertiesMap(Element e)
Deprecated.
|
CascadedStyle |
getCascadedStyle(Element e,
boolean restyle)
Gets the CascadedStyle for an element.
|
String |
getCSSForAllDescendants(Element e)
Given an element, returns all selectors and their rulesets
for its descendants.
|
List<FontFaceRule> |
getFontFaceRules() |
PageInfo |
getPageStyle(String pageName,
String pseudoPage) |
CascadedStyle |
getPseudoElementStyle(Node node,
String pseudoElement)
Gets the pseudoElementStyle attribute of the StyleReference object
|
CalculatedStyle |
getRootElementStyle()
Gets the style of the root element, should be html tag.
|
boolean |
isHoverStyled(Element e) |
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 CalculatedStyle getRootElementStyle()
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,CSSPrimitiveValue> getCascadedPropertiesMap(Element e)
Only used by broken DOM inspector.
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 - public String getCSSForAllDescendants(Element e)
public List<FontFaceRule> getFontFaceRules()
public void setUserAgentCallback(UserAgentCallback userAgentCallback)
public void setSupportCMYKColors(boolean b)
Copyright © 2004–2025. All rights reserved.