com.steadystate.css.dom
Class CSSStyleSheetImpl
java.lang.Object
com.steadystate.css.dom.CSSStyleSheetImpl
- All Implemented Interfaces:
- java.io.Serializable, org.w3c.dom.css.CSSStyleSheet, org.w3c.dom.stylesheets.StyleSheet
public class CSSStyleSheetImpl
- extends java.lang.Object
- implements org.w3c.dom.css.CSSStyleSheet, java.io.Serializable
Implementation of CSSStyleSheet.
- Version:
- $Id: CSSStyleSheetImpl.java,v 1.2 2008/03/26 02:17:24 sdanig Exp $
- Author:
- David Schweinsberg
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CSSStyleSheetImpl
public CSSStyleSheetImpl()
setMedia
public void setMedia(org.w3c.dom.stylesheets.MediaList media)
setBaseUri
public void setBaseUri(java.lang.String baseUri)
getType
public java.lang.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 org.w3c.dom.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 java.lang.String getHref()
- Specified by:
getHref in interface org.w3c.dom.stylesheets.StyleSheet
getTitle
public java.lang.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(java.lang.String rule,
int index)
throws org.w3c.dom.DOMException
- Specified by:
insertRule in interface org.w3c.dom.css.CSSStyleSheet
- Throws:
org.w3c.dom.DOMException
deleteRule
public void deleteRule(int index)
throws org.w3c.dom.DOMException
- Specified by:
deleteRule in interface org.w3c.dom.css.CSSStyleSheet
- Throws:
org.w3c.dom.DOMException
isReadOnly
public boolean isReadOnly()
setReadOnly
public void setReadOnly(boolean b)
setOwnerNode
public void setOwnerNode(org.w3c.dom.Node ownerNode)
setParentStyleSheet
public void setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet)
setHref
public void setHref(java.lang.String href)
setTitle
public void setTitle(java.lang.String title)
setMediaText
public void setMediaText(java.lang.String mediaText)
setOwnerRule
public void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)
setCssRules
public void setCssRules(org.w3c.dom.css.CSSRuleList rules)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
importImports
public void importImports(boolean recursive)
throws org.w3c.dom.DOMException
- Imports referenced CSSStyleSheets.
- Parameters:
recursive - true if the import should be done
recursively, false otherwise
- Throws:
org.w3c.dom.DOMException
Copyright © 2010. All Rights Reserved.