|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.context.StyleReference
public class StyleReference
| Constructor Summary | |
|---|---|
StyleReference(UserAgentCallback userAgent)
Default constructor for initializing members. |
|
| Method Summary | |
|---|---|
void |
flushAllStyleSheets()
|
void |
flushStyleSheets()
Flushes any stylesheet associated with this stylereference (based on the user agent callback) that are in cache. |
Map |
getCascadedPropertiesMap(Element e)
Returns a Map keyed by CSS property names (e.g. |
CascadedStyle |
getCascadedStyle(Element e,
boolean restyle)
Gets the CascadedStyle for an element. |
List |
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)
Description of the Method |
void |
removeStyle(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleReference(UserAgentCallback userAgent)
userAgent - PARAM| Method Detail |
|---|
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)
e - PARAM
public Map getCascadedPropertiesMap(Element e)
org.xhtmlrenderer.swing.BasicPanel#setDocument(Document, java.net.URL)
for an example of how to establish a StyleReference and associate to a
Document.
e - The DOM Element for which to find properties
public CascadedStyle getPseudoElementStyle(Node node,
String pseudoElement)
node - PARAMpseudoElement - PARAM
public CascadedStyle getCascadedStyle(Element e,
boolean restyle)
e - The elementrestyle -
public PageInfo getPageStyle(String pageName,
String pseudoPage)
public void flushStyleSheets()
public void flushAllStyleSheets()
public void removeStyle(Element e)
public List getFontFaceRules()
public void setUserAgentCallback(UserAgentCallback userAgentCallback)
public void setSupportCMYKColors(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||