|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.DCSSRule
| Field Summary |
| Fields inherited from interface org.w3c.dom.css.CSSRule |
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE |
| Method Summary | |
void |
deleteRule(int index)
Used to delete a rule from the media block. |
protected void |
dispatchDOMEvent(short type,
String name,
String value)
Utility to dispatch the CSSModified MutationEvent on Element closest to this rule. |
CSSRuleList |
getCssRules()
A list of all CSS rules contained within the media block. |
String |
getCssText()
The parsable textual representation of the rule. |
String |
getEncoding()
The encoding information used in this @charset rule. |
String |
getHref()
The location of the style sheet to be imported. |
MediaList |
getMedia()
A list of media types for which this style sheet may be used. |
CSSRule |
getParentRule()
If this rule is contained inside another rule (e.g. |
CSSStyleSheet |
getParentStyleSheet()
The style sheet that contains this rule. |
String |
getSelectorText()
The textual representation of the selector for the rule set. |
CSSStyleDeclaration |
getStyle()
The declaration-block of this rule set. |
CSSStyleSheet |
getStyleSheet()
The style sheet referred to by this rule, if it has been loaded. |
short |
getType()
The type of the rule, as defined above. |
int |
insertRule(String rule,
int index)
Used to insert a new rule into the media block. |
void |
setCssText(String cssText)
|
void |
setEncoding(String encoding)
|
void |
setSelectorText(String selectorText)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public short getType()
CSSRuleCSSRule interface to the specific
derived interface implied by the type.
getType in interface CSSRulepublic String getCssText()
CSSRule
getCssText in interface CSSRulepublic void setCssText(String cssText)
setCssText in interface CSSRulepublic CSSStyleSheet getParentStyleSheet()
CSSRule
getParentStyleSheet in interface CSSRulepublic CSSRule getParentRule()
CSSRulenull.
getParentRule in interface CSSRulepublic String getSelectorText()
CSSStyleRule
getSelectorText in interface CSSStyleRulepublic void setSelectorText(String selectorText)
setSelectorText in interface CSSStyleRulepublic CSSStyleDeclaration getStyle()
CSSStyleRule
getStyle in interface CSSStyleRulepublic MediaList getMedia()
CSSImportRule
getMedia in interface CSSImportRulepublic CSSRuleList getCssRules()
CSSMediaRule
getCssRules in interface CSSMediaRule
public int insertRule(String rule,
int index)
CSSMediaRule
insertRule in interface CSSMediaRulerule - The parsable text representing the rule. For rule sets
this contains both the selector and the style declaration. For
at-rules, this specifies both the at-identifier and the rule
content.index - The index within the media block's rule collection of the
rule before which to insert the specified rule. If the specified
index is equal to the length of the media blocks's rule collection,
the rule will be added to the end of the media block.
public void deleteRule(int index)
CSSMediaRule
deleteRule in interface CSSMediaRuleindex - The index within the media block's rule collection of the
rule to remove.public String getHref()
CSSImportRule"url(...)" specifier around the URI.
getHref in interface CSSImportRulepublic CSSStyleSheet getStyleSheet()
CSSImportRulenull if the style sheet has
not yet been loaded or if it will not be loaded (e.g. if the style
sheet is for a media type not supported by the user agent).
getStyleSheet in interface CSSImportRulepublic String getEncoding()
CSSCharsetRule@charset rule.
getEncoding in interface CSSCharsetRulepublic void setEncoding(String encoding)
setEncoding in interface CSSCharsetRulepublic String toString()
protected final void dispatchDOMEvent(short type,
String name,
String value)
type - The exact type of style-changename - The name of the style which was affectedvalue - The new value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||