Package org.loboevolution.html.js.css
Class CSSMediaRuleImpl
java.lang.Object
org.loboevolution.html.js.css.CSSRuleImpl
org.loboevolution.html.js.css.AbstractCSSStyleRule
org.loboevolution.html.js.css.CSSMediaRuleImpl
- All Implemented Interfaces:
CSSMediaRule,CSSRule,CSSStyleRule
CSSMediaRuleImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRule(Integer index) deleteRule.getCssRules.getMedia()getMedia.voidinsertRule(String rule) insertRule.voidinsertRule(String rule, Integer index) insertRule.voidsetMedia.toString()Methods inherited from class org.loboevolution.html.js.css.AbstractCSSStyleRule
getSelectorText, getStyleMethods inherited from class org.loboevolution.html.js.css.CSSRuleImpl
getCssText, getParentRule, getParentStyleSheet, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.loboevolution.css.CSSRule
getCssText, getParentRule, getParentStyleSheet, getType
-
Constructor Details
-
CSSMediaRuleImpl
-
-
Method Details
-
getMedia
Description copied from interface:CSSMediaRulegetMedia.
- Specified by:
getMediain interfaceCSSMediaRule- Returns:
- a
MediaListobject representing the media queries for this rule.
-
setMedia
Description copied from interface:CSSMediaRulesetMedia.
- Specified by:
setMediain interfaceCSSMediaRule- Parameters:
media- aStringobject specifying the media query text.
-
getCssRules
Description copied from interface:CSSMediaRulegetCssRules.
- Specified by:
getCssRulesin interfaceCSSMediaRule- Returns:
- a
CSSRuleListobject containing all CSS rules in this media rule.
-
insertRule
Description copied from interface:CSSMediaRuleinsertRule.
Adds a new rule to the end of this media rule's CSS rule list.- Specified by:
insertRulein interfaceCSSMediaRule- Parameters:
rule- aStringobject containing the CSS rule text to insert.
-
insertRule
Description copied from interface:CSSMediaRuleinsertRule.
Adds a new rule at the specified position in this media rule's CSS rule list.- Specified by:
insertRulein interfaceCSSMediaRule- Parameters:
rule- aStringobject containing the CSS rule text to insert.index- anIntegerspecifying the position at which to insert the rule.
-
deleteRule
Description copied from interface:CSSMediaRuledeleteRule.
Removes a rule at the specified position from this media rule's CSS rule list.- Specified by:
deleteRulein interfaceCSSMediaRule- Parameters:
index- anIntegerspecifying the position of the rule to remove.
-
toString
- Overrides:
toStringin classCSSRuleImpl
-