com.steadystate.css.dom
Class CSSStyleSheetImpl
java.lang.Object
com.steadystate.css.dom.CSSStyleSheetImpl
- All Implemented Interfaces:
- Serializable, org.w3c.dom.css.CSSStyleSheet, org.w3c.dom.stylesheets.StyleSheet
public class CSSStyleSheetImpl
- extends Object
- implements org.w3c.dom.css.CSSStyleSheet, Serializable
Implementation of CSSStyleSheet.
- Author:
- David Schweinsberg, rbri
- See Also:
- Serialized Form
CSSStyleSheetImpl
public CSSStyleSheetImpl()
setMedia
public void setMedia(org.w3c.dom.stylesheets.MediaList media)
setBaseUri
public void setBaseUri(String baseUri)
getType
public String getType()
- Specified by:
getType in interface org.w3c.dom.stylesheets.StyleSheet
getDisabled
public boolean getDisabled()
- Specified by:
getDisabled in interface org.w3c.dom.stylesheets.StyleSheet
setDisabled
public 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.
- Specified by:
setDisabled in interface org.w3c.dom.stylesheets.StyleSheet
getOwnerNode
public Node getOwnerNode()
- Specified by:
getOwnerNode in interface org.w3c.dom.stylesheets.StyleSheet
getParentStyleSheet
public org.w3c.dom.stylesheets.StyleSheet getParentStyleSheet()
- Specified by:
getParentStyleSheet in interface org.w3c.dom.stylesheets.StyleSheet
getHref
public String getHref()
- Specified by:
getHref in interface org.w3c.dom.stylesheets.StyleSheet
getTitle
public String getTitle()
- Specified by:
getTitle in interface org.w3c.dom.stylesheets.StyleSheet
getMedia
public org.w3c.dom.stylesheets.MediaList getMedia()
- Specified by:
getMedia in interface org.w3c.dom.stylesheets.StyleSheet
getOwnerRule
public org.w3c.dom.css.CSSRule getOwnerRule()
- Specified by:
getOwnerRule in interface org.w3c.dom.css.CSSStyleSheet
getCssRules
public org.w3c.dom.css.CSSRuleList getCssRules()
- Specified by:
getCssRules in interface org.w3c.dom.css.CSSStyleSheet
insertRule
public int insertRule(String rule,
int index)
throws DOMException
- Specified by:
insertRule in interface org.w3c.dom.css.CSSStyleSheet
- Throws:
DOMException
deleteRule
public void deleteRule(int index)
throws DOMException
- Specified by:
deleteRule in interface org.w3c.dom.css.CSSStyleSheet
- Throws:
DOMException
isReadOnly
public boolean isReadOnly()
setReadOnly
public void setReadOnly(boolean b)
setOwnerNode
public void setOwnerNode(Node ownerNode)
setParentStyleSheet
public void setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet)
setHref
public void setHref(String href)
setTitle
public void setTitle(String title)
setMediaText
public void setMediaText(String mediaText)
setOwnerRule
public void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)
setCssRules
public void setCssRules(org.w3c.dom.css.CSSRuleList rules)
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
importImports
public void importImports(boolean recursive)
throws DOMException
- Imports referenced CSSStyleSheets.
- Parameters:
recursive - true if the import should be done
recursively, false otherwise
- Throws:
DOMException
Copyright © 2013. All rights reserved.