|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.steadystate.css.dom.CSSRuleListImpl
fi.hut.tml.xsmiles.mlfc.css.XSmilesCSSRuleListImpl
MH: This class has been taken from Steady State CSS and modified for use with X-Smiles browser. XSmilesCSSOMParser generates instances of this type. Reason: allow sorting of rule lists
| Nested Class Summary | |
static class |
XSmilesCSSRuleListImpl.CSSComparer
a comparer class for the QuickSort algorithm in package mlfc.general |
| Field Summary | |
protected java.util.Vector |
_rules
the vector of rules, SS had private access |
protected short |
listState
the current state |
protected MediaQueryEvaluator |
mqe
|
static short |
STATE_RULES_SORTED
|
static short |
STATE_RULES_SPLIT
|
static short |
UNINITIALIZED
|
| Constructor Summary | |
XSmilesCSSRuleListImpl()
|
|
| Method Summary | |
void |
add(org.w3c.dom.css.CSSRule rule)
this method is copied from the SS CSS implementation |
void |
appendFrom(XSmilesCSSRuleListImpl ruleList,
int origin,
boolean split,
MediaQueryEvaluator mqe)
appends all rules from ruleList into this rule list, comma separated rules will be split if 'spit' is true |
void |
appendTo(org.w3c.dom.css.CSSRuleList list)
|
protected void |
clearRules()
|
java.lang.Object |
clone()
|
void |
delete(int index)
this method is copied from the SS CSS implementation |
int |
getLength()
this method is copied from the SS CSS implementation |
void |
insert(org.w3c.dom.css.CSSRule rule,
int index)
this method is copied from the SS CSS implementation |
org.w3c.dom.css.CSSRule |
item(int index)
this method is copied from the SS CSS implementation |
void |
setMediaQueryEvaluator(MediaQueryEvaluator evaluator)
this method splits all rules that are comma separated, and it also counts the specificity of all rules |
void |
sort()
sorts this rule list according to the getSpecificity method from rule |
protected void |
splitAllRules()
|
void |
splitAndAppend(XSmilesCSSStyleRule rule,
org.w3c.css.sac.SelectorList selList,
XSmilesCSSRuleListImpl ruleList,
int origin)
appends a single rule into this rule, but splits it if there are multiple selectors separeted with a comma |
java.lang.String |
toString()
this method is copied from the SS CSS implementation |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final short UNINITIALIZED
public static final short STATE_RULES_SPLIT
public static final short STATE_RULES_SORTED
protected short listState
protected java.util.Vector _rules
protected MediaQueryEvaluator mqe
| Constructor Detail |
public XSmilesCSSRuleListImpl()
| Method Detail |
public void sort()
public void appendTo(org.w3c.dom.css.CSSRuleList list)
public void setMediaQueryEvaluator(MediaQueryEvaluator evaluator)
protected void splitAllRules()
protected void clearRules()
public void appendFrom(XSmilesCSSRuleListImpl ruleList,
int origin,
boolean split,
MediaQueryEvaluator mqe)
public void splitAndAppend(XSmilesCSSStyleRule rule,
org.w3c.css.sac.SelectorList selList,
XSmilesCSSRuleListImpl ruleList,
int origin)
public int getLength()
getLength in interface org.w3c.dom.css.CSSRuleListpublic org.w3c.dom.css.CSSRule item(int index)
item in interface org.w3c.dom.css.CSSRuleListpublic void add(org.w3c.dom.css.CSSRule rule)
public void insert(org.w3c.dom.css.CSSRule rule,
int index)
public void delete(int index)
public java.lang.String toString()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||