- All Superinterfaces:
CSSRule,ExtendedCSSRule
- All Known Implementing Classes:
KeyframesRule
CSSKeyframesRule represents a complete set of keyframes for a single
animation.-
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_RULEFields inherited from interface io.sf.carte.doc.style.css.ExtendedCSSRule
COUNTER_STYLE_RULE, CUSTOM_MEDIA_RULE, DOCUMENT_RULE, FONT_FEATURE_VALUES_RULE, KEYFRAME_RULE, KEYFRAMES_RULE, MARGIN_RULE, NAMESPACE_RULE, REGION_STYLE_RULE, SUPPORTS_RULE, VIEWPORT_RULE -
Method Summary
Modifier and TypeMethodDescriptionvoidappendRule(String rule) Appends a new rule into this keyframes rule collection.voiddeleteRule(String select) Deletes the last declaredCSSKeyframeRulematching the specified keyframe selector from thiskeyframesrule collection.The findRule returns the last declared CSSKeyframeRule matching the specified keyframe selector.Gets the list of keyframe rules.getName()Gets the name of the keyframes.Methods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getType, setCssTextMethods inherited from interface io.sf.carte.doc.style.css.ExtendedCSSRule
clone, getMinifiedCssText, getParentRule, getParentStyleSheet, writeCssText
-
Method Details
-
getName
String getName()Gets the name of the keyframes.- Returns:
- the name of the keyframes.
-
getCssRules
CSSRuleArrayList getCssRules()Gets the list of keyframe rules.- Returns:
- the list of keyframe rules.
-
appendRule
Appends a new rule into this keyframes rule collection.- Parameters:
rule- The parsable text representing the rule.
-
deleteRule
Deletes the last declaredCSSKeyframeRulematching the specified keyframe selector from thiskeyframesrule collection. If no matching rule exists, the method does nothing.The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to white space around the values in the list.
- Parameters:
select- The keyframe selector of the rule to be deleted: a comma-separated list of keywords or percentage values between 0% and 100%.
-
findRule
The findRule returns the last declared CSSKeyframeRule matching the specified keyframe selector. If no matching rule exists, the method does nothing.- Parameters:
select- The keyframe selector of the rule to be deleted: a comma-separated list of keywords or percentage values between 0% and 100%.- Returns:
- the found rule, or null if no rule was found.
-