fi.hut.tml.xsmiles.mlfc.css
Class XSmilesCSSStyleSheetImpl

java.lang.Object
  extended bycom.steadystate.css.dom.CSSStyleSheetImpl
      extended byfi.hut.tml.xsmiles.mlfc.css.XSmilesCSSStyleSheetImpl
All Implemented Interfaces:
org.w3c.dom.css.CSSStyleSheet, java.io.Serializable, org.w3c.dom.stylesheets.StyleSheet

public class XSmilesCSSStyleSheetImpl
extends com.steadystate.css.dom.CSSStyleSheetImpl
implements org.w3c.dom.css.CSSStyleSheet

MH: This class has been modified for use with X-Smiles browser. the only modification is the creation of XSmilesCSSOMParser instead of SS OMParser in insertRule(String, int).

See Also:
Serialized Form

Constructor Summary
XSmilesCSSStyleSheetImpl()
           
 
Method Summary
 void deleteRule(int index)
           
 org.w3c.dom.css.CSSRuleList getCssRules()
           
 boolean getDisabled()
           
 java.lang.String getHref()
           
 org.w3c.dom.stylesheets.MediaList getMedia()
           
 org.w3c.dom.Node getOwnerNode()
           
 org.w3c.dom.css.CSSRule getOwnerRule()
           
 org.w3c.dom.stylesheets.StyleSheet getParentStyleSheet()
           
 java.lang.String getTitle()
           
 java.lang.String getType()
           
 int insertRule(java.lang.String rule, int index)
           
 boolean isReadOnly()
           
 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(java.lang.String href)
           
 void setMedia(java.lang.String mediaText)
           
 void setOwnerNode(org.w3c.dom.Node ownerNode)
           
 void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)
           
 void setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet)
           
 void setReadOnly(boolean b)
           
 void setRuleList(com.steadystate.css.dom.CSSRuleListImpl rules)
           
 void setTitle(java.lang.String title)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XSmilesCSSStyleSheetImpl

public XSmilesCSSStyleSheetImpl()
Method Detail

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)

setMedia

public void setMedia(java.lang.String mediaText)

setOwnerRule

public void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)

setRuleList

public void setRuleList(com.steadystate.css.dom.CSSRuleListImpl rules)

toString

public java.lang.String toString()


X-Smiles 1.2