fi.hut.tml.xsmiles.mlfc.css
Class XSmilesCSSStyleDeclarationImpl
java.lang.Object
com.steadystate.css.dom.CSSStyleDeclarationImpl
fi.hut.tml.xsmiles.mlfc.css.XSmilesCSSStyleDeclarationImpl
- All Implemented Interfaces:
- org.w3c.dom.css.CSSStyleDeclaration, java.io.Serializable
- public class XSmilesCSSStyleDeclarationImpl
- extends com.steadystate.css.dom.CSSStyleDeclarationImpl
MH: This class has been modified for use with X-Smiles browser.
Reason: this class can efficiently combine two or more StyleDeclarations
- See Also:
- Serialized Form
| Fields inherited from class com.steadystate.css.dom.CSSStyleDeclarationImpl |
_parentRule, _properties |
|
Method Summary |
void |
addCSSStyleChangeListener(CSSStyleChangeListener listener)
|
void |
combineFrom(XSmilesCSSStyleDeclarationImpl fromStyle)
Take in a style declaration, and combine all attributes to this style declaration |
protected void |
computeRelativeValues(org.w3c.dom.Element elem,
java.lang.String pseudoclass,
XSmilesCSSStyleDeclarationImpl localStyle,
XSmilesCSSStyleDeclarationImpl parentStyle)
Computes the relative values in the given style declaration for the
given element and pseudo-element. |
void |
copyPropertySet(XSmilesCSSStyleDeclarationImpl fromStyle)
|
protected void |
fireChangeListeners()
|
com.steadystate.css.dom.Property |
getProperty(java.lang.String name)
|
protected boolean |
inherit(com.steadystate.css.dom.Property prop,
XSmilesCSSStyleDeclarationImpl parentStyle)
this method checks the property, and if it has the value of 'inherit'
it inherits it from the parent style |
void |
removeCSSStyleChangeListener(CSSStyleChangeListener listener)
|
void |
setProperty(java.lang.String propertyName,
org.w3c.dom.css.CSSValue expr,
boolean important)
Add property (new / old) without using CSS parser |
void |
setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String priority)
|
| Methods inherited from class com.steadystate.css.dom.CSSStyleDeclarationImpl |
addProperty, getCssText, getLength, getParentRule, getPropertyCSSValue, getPropertyDeclaration, getPropertyPriority, getPropertyValue, item, removeProperty, setCssText, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
stylelisteners
protected java.util.Vector stylelisteners
XSmilesCSSStyleDeclarationImpl
public XSmilesCSSStyleDeclarationImpl(org.w3c.dom.css.CSSRule parentRule)
combineFrom
public void combineFrom(XSmilesCSSStyleDeclarationImpl fromStyle)
- Take in a style declaration, and combine all attributes to this style declaration
inherit
protected boolean inherit(com.steadystate.css.dom.Property prop,
XSmilesCSSStyleDeclarationImpl parentStyle)
- this method checks the property, and if it has the value of 'inherit'
it inherits it from the parent style
computeRelativeValues
protected void computeRelativeValues(org.w3c.dom.Element elem,
java.lang.String pseudoclass,
XSmilesCSSStyleDeclarationImpl localStyle,
XSmilesCSSStyleDeclarationImpl parentStyle)
- Computes the relative values in the given style declaration for the
given element and pseudo-element.
copyPropertySet
public void copyPropertySet(XSmilesCSSStyleDeclarationImpl fromStyle)
setProperty
public void setProperty(java.lang.String propertyName,
org.w3c.dom.css.CSSValue expr,
boolean important)
throws org.w3c.dom.DOMException
- Add property (new / old) without using CSS parser
- Throws:
org.w3c.dom.DOMException
fireChangeListeners
protected void fireChangeListeners()
setProperty
public void setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String priority)
throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
getProperty
public com.steadystate.css.dom.Property getProperty(java.lang.String name)
addCSSStyleChangeListener
public void addCSSStyleChangeListener(CSSStyleChangeListener listener)
removeCSSStyleChangeListener
public void removeCSSStyleChangeListener(CSSStyleChangeListener listener)
X-Smiles 1.2