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 CSSStyleSheetImpl()
public void setMedia(org.w3c.dom.stylesheets.MediaList media)
public void setBaseUri(String baseUri)
public String getType()
getType
in interface org.w3c.dom.stylesheets.StyleSheet
public boolean getDisabled()
getDisabled
in interface org.w3c.dom.stylesheets.StyleSheet
public void setDisabled(boolean disabled)
setDisabled
in interface org.w3c.dom.stylesheets.StyleSheet
public Node getOwnerNode()
getOwnerNode
in interface org.w3c.dom.stylesheets.StyleSheet
public org.w3c.dom.stylesheets.StyleSheet getParentStyleSheet()
getParentStyleSheet
in interface org.w3c.dom.stylesheets.StyleSheet
public String getHref()
getHref
in interface org.w3c.dom.stylesheets.StyleSheet
public String getTitle()
getTitle
in interface org.w3c.dom.stylesheets.StyleSheet
public org.w3c.dom.stylesheets.MediaList getMedia()
getMedia
in interface org.w3c.dom.stylesheets.StyleSheet
public org.w3c.dom.css.CSSRule getOwnerRule()
getOwnerRule
in interface org.w3c.dom.css.CSSStyleSheet
public org.w3c.dom.css.CSSRuleList getCssRules()
getCssRules
in interface org.w3c.dom.css.CSSStyleSheet
public int insertRule(String rule, int index) throws DOMException
insertRule
in interface org.w3c.dom.css.CSSStyleSheet
DOMException
public void deleteRule(int index) throws DOMException
deleteRule
in interface org.w3c.dom.css.CSSStyleSheet
DOMException
public 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 CSSFormatable
format
- the formatting rulespublic void importImports(boolean recursive) throws DOMException
recursive
- true
if the import should be done
recursively, false
otherwiseDOMException
Copyright © 1999–2022. All rights reserved.