Package io.sf.carte.doc.style.css
Interface CSSKeyframesRule
- All Superinterfaces:
CSSRule
,org.w3c.dom.css.CSSRule
- All Known Implementing Classes:
KeyframesRule
CSSKeyframesRule
represents a complete set of keyframes for a single
animation.-
Field Summary
Fields inherited from interface io.sf.carte.doc.style.css.CSSRule
COUNTER_STYLE_RULE, CUSTOM_MEDIA_RULE, DOCUMENT_RULE, FONT_FACE_RULE, FONT_FEATURE_VALUES_RULE, IMPORT_RULE, KEYFRAME_RULE, KEYFRAMES_RULE, MARGIN_RULE, MEDIA_RULE, NAMESPACE_RULE, PAGE_RULE, PROPERTY_RULE, REGION_STYLE_RULE, STYLE_RULE, SUPPORTS_RULE, UNKNOWN_RULE, VIEWPORT_RULE
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendRule
(String rule) Appends a new rule into this keyframes rule collection.void
deleteRule
(String select) Deletes the last declaredCSSKeyframeRule
matching the specified keyframe selector from thiskeyframes
rule 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 io.sf.carte.doc.style.css.CSSRule
getMinifiedCssText, getParentRule, getParentStyleSheet, getPrecedingComments, getTrailingComments, writeCssText
Methods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getType, setCssText
-
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 declaredCSSKeyframeRule
matching the specified keyframe selector from thiskeyframes
rule 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.
-