|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.AbstractCSSRule | +--org.apache.batik.css.CSSOMStyleRule
This class implements the CSSStyleRule
interface.
Inner Class Summary | |
protected class |
CSSOMStyleRule.StyleRuleHandler
To handle the parsing of a style rule. |
Field Summary | |
protected java.net.URL |
baseURI
The base URI. |
protected ValueFactoryMap |
factories
The value factory map. |
protected ExtendedParser |
parser
The CSS parser. |
protected DocumentHandler |
ruleHandler
The CSS document handler. |
protected SelectorList |
selectors
The selectors. |
protected CSSOMStyleDeclaration |
style
The declaration-block of this rule set. |
protected CSSStyleRuleChangeSupport |
styleRuleChangeSupport
The Style rule change support. |
Fields inherited from class org.apache.batik.css.AbstractCSSRule |
CONDITION_FACTORY, parentRule, parentStyleSheet, SELECTOR_FACTORY |
Fields inherited from interface org.w3c.dom.css.CSSRule |
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE |
Constructor Summary | |
CSSOMStyleRule(CSSStyleSheet ss,
CSSRule pr,
Parser p,
ValueFactoryMap m)
Creates a new rule set. |
Method Summary | |
void |
addCSSStyleRuleChangeListener(CSSStyleRuleChangeListener listener)
Adds a CSSStyleRuleChangeListener to the listener list. |
void |
cssPropertyChange(CSSPropertyChangeEvent evt)
Called when a CSS property is changed. |
void |
cssStyleDeclarationChangeCancel(CSSStyleDeclarationChangeEvent evt)
Called a CSS declaration change has been cancelled. |
void |
cssStyleDeclarationChangeEnd(CSSStyleDeclarationChangeEvent evt)
Called after a CSS declaration was changed. |
void |
cssStyleDeclarationChangeStart(CSSStyleDeclarationChangeEvent evt)
Called before a CSS declaration will be changed. |
void |
fireCSSStyleRuleChangeCancel()
Reports the cancellation of a CSSStyleRule update to any registered listeners. |
void |
fireCSSStyleRuleChangeEnd()
Reports the end of a CSSStyleRule update to any registered listeners. |
void |
fireCSSStyleRuleChangeStart()
Reports the start of a CSSStyleRule update to any registered listeners. |
java.net.URL |
getBaseURI()
Returns the base URI. |
java.lang.String |
getCssText()
DOM: Implements CSSRule.getCssText() . |
SelectorList |
getSelectors()
Returns the selectors. |
java.lang.String |
getSelectorText()
DOM: Implements CSSStyleRule.getSelectorText() . |
CSSStyleDeclaration |
getStyle()
DOM: Implements CSSStyleRule.getStyle() . |
short |
getType()
DOM: Implements CSSRule.getType() . |
void |
removeCSSStyleRuleChangeListener(CSSStyleRuleChangeListener listener)
Removes a CSSStyleRuleChangeListener from the listener list. |
void |
setBaseURI(java.net.URL url)
Sets the base URI. |
void |
setCssText(java.lang.String cssText)
DOM: Implements CSSRule.setCssText(String) . |
void |
setSelectors(SelectorList s)
Sets the selectors. |
void |
setSelectorText(java.lang.String selectorText)
DOM: Implements CSSStyleRule.setSelectorText(String) . |
Methods inherited from class org.apache.batik.css.AbstractCSSRule |
getParentRule, getParentStyleSheet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.css.CSSRule |
getParentRule, getParentStyleSheet |
Field Detail |
protected SelectorList selectors
protected CSSOMStyleDeclaration style
protected ExtendedParser parser
protected ValueFactoryMap factories
protected DocumentHandler ruleHandler
protected CSSStyleRuleChangeSupport styleRuleChangeSupport
protected java.net.URL baseURI
Constructor Detail |
public CSSOMStyleRule(CSSStyleSheet ss, CSSRule pr, Parser p, ValueFactoryMap m)
Method Detail |
public void setBaseURI(java.net.URL url)
public java.net.URL getBaseURI()
public short getType()
CSSRule.getType()
.getType
in interface CSSRule
CSSRule.STYLE_RULE
.public java.lang.String getCssText()
CSSRule.getCssText()
.getCssText
in interface CSSRule
org.w3c.dom.css.CSSRule
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public void setCssText(java.lang.String cssText) throws DOMException
CSSRule.setCssText(String)
.setCssText
in interface CSSRule
org.w3c.dom.css.CSSRule
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public java.lang.String getSelectorText()
CSSStyleRule.getSelectorText()
.getSelectorText
in interface CSSStyleRule
org.w3c.dom.css.CSSStyleRule
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public void setSelectorText(java.lang.String selectorText) throws DOMException
CSSStyleRule.setSelectorText(String)
.setSelectorText
in interface CSSStyleRule
org.w3c.dom.css.CSSStyleRule
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public void setSelectors(SelectorList s)
public SelectorList getSelectors()
public CSSStyleDeclaration getStyle()
CSSStyleRule.getStyle()
.getStyle
in interface CSSStyleRule
public void addCSSStyleRuleChangeListener(CSSStyleRuleChangeListener listener)
listener
- The CSSStyleRuleChangeListener to be addedpublic void removeCSSStyleRuleChangeListener(CSSStyleRuleChangeListener listener)
listener
- The CSSStyleRuleChangeListener to be removedpublic void cssStyleDeclarationChangeStart(CSSStyleDeclarationChangeEvent evt)
cssStyleDeclarationChangeStart
in interface CSSStyleDeclarationChangeListener
public void cssStyleDeclarationChangeCancel(CSSStyleDeclarationChangeEvent evt)
cssStyleDeclarationChangeCancel
in interface CSSStyleDeclarationChangeListener
public void cssStyleDeclarationChangeEnd(CSSStyleDeclarationChangeEvent evt)
cssStyleDeclarationChangeEnd
in interface CSSStyleDeclarationChangeListener
public void cssPropertyChange(CSSPropertyChangeEvent evt)
cssPropertyChange
in interface CSSPropertyChangeListener
public void fireCSSStyleRuleChangeStart()
public void fireCSSStyleRuleChangeCancel()
public void fireCSSStyleRuleChangeEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |