public class CSSStyleSheetImpl extends Object implements org.w3c.dom.css.CSSStyleSheet, CSSFormatable, Serializable
CSSStyleSheet.| Constructor and Description |
|---|
CSSStyleSheetImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRule(int index) |
boolean |
equals(Object obj) |
org.w3c.dom.css.CSSRuleList |
getCssRules() |
String |
getCssText()
Same as
getCssText(CSSFormat) but using the default format. |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
boolean |
getDisabled() |
String |
getHref() |
org.w3c.dom.stylesheets.MediaList |
getMedia() |
Node |
getOwnerNode() |
org.w3c.dom.css.CSSRule |
getOwnerRule() |
org.w3c.dom.stylesheets.StyleSheet |
getParentStyleSheet() |
String |
getTitle() |
String |
getType() |
int |
hashCode() |
void |
importImports(boolean recursive)
Imports referenced CSSStyleSheets.
|
int |
insertRule(String rule,
int index) |
boolean |
isReadOnly() |
void |
setBaseUri(String baseUri) |
void |
setCssRules(org.w3c.dom.css.CSSRuleList rules) |
void |
setDisabled(boolean disabled)
We will need to respond more fully if a stylesheet is disabled, probably
by generating an event for the main application.
|
void |
setHref(String href) |
void |
setMedia(org.w3c.dom.stylesheets.MediaList media) |
void |
setMediaText(String mediaText) |
void |
setOwnerNode(Node ownerNode) |
void |
setOwnerRule(org.w3c.dom.css.CSSRule ownerRule) |
void |
setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet) |
void |
setReadOnly(boolean b) |
void |
setTitle(String title) |
String |
toString() |
public void setMedia(org.w3c.dom.stylesheets.MediaList media)
public void setBaseUri(String baseUri)
public String getType()
getType in interface org.w3c.dom.stylesheets.StyleSheetpublic boolean getDisabled()
getDisabled in interface org.w3c.dom.stylesheets.StyleSheetpublic void setDisabled(boolean disabled)
setDisabled in interface org.w3c.dom.stylesheets.StyleSheetpublic Node getOwnerNode()
getOwnerNode in interface org.w3c.dom.stylesheets.StyleSheetpublic org.w3c.dom.stylesheets.StyleSheet getParentStyleSheet()
getParentStyleSheet in interface org.w3c.dom.stylesheets.StyleSheetpublic String getHref()
getHref in interface org.w3c.dom.stylesheets.StyleSheetpublic String getTitle()
getTitle in interface org.w3c.dom.stylesheets.StyleSheetpublic org.w3c.dom.stylesheets.MediaList getMedia()
getMedia in interface org.w3c.dom.stylesheets.StyleSheetpublic org.w3c.dom.css.CSSRule getOwnerRule()
getOwnerRule in interface org.w3c.dom.css.CSSStyleSheetpublic org.w3c.dom.css.CSSRuleList getCssRules()
getCssRules in interface org.w3c.dom.css.CSSStyleSheetpublic int insertRule(String rule, int index) throws DOMException
insertRule in interface org.w3c.dom.css.CSSStyleSheetDOMExceptionpublic void deleteRule(int index)
throws DOMException
deleteRule in interface org.w3c.dom.css.CSSStyleSheetDOMExceptionpublic boolean isReadOnly()
public void setReadOnly(boolean b)
public void setOwnerNode(Node ownerNode)
public void setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet)
public void setHref(String href)
public void setTitle(String title)
public void setMediaText(String mediaText)
public void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)
public void setCssRules(org.w3c.dom.css.CSSRuleList rules)
public String getCssText()
getCssText(CSSFormat) but using the default format.public String getCssText(CSSFormat format)
getCssText in interface CSSFormatableformat - the formatting rulespublic void importImports(boolean recursive)
throws DOMException
recursive - true if the import should be done
recursively, false otherwiseDOMExceptionCopyright © 2015. All rights reserved.