- All Superinterfaces:
CSSConditionRule,CSSGroupingRule,CSSRule,CSSRule
- All Known Implementing Classes:
SupportsRule
Represents a ‘@supports’ rule.
-
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, NESTED_DECLARATIONS, PAGE_RULE, PROPERTY_RULE, REGION_STYLE_RULE, STYLE_RULE, SUPPORTS_RULE, UNKNOWN_RULE, VIEWPORT_RULEFields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE -
Method Summary
Modifier and TypeMethodDescriptionGet the object model representation of the condition associated to this rule.booleansupports(StyleDatabase styleDatabase) Does the given style database support the condition associated to this rule ?Methods inherited from interface io.sf.carte.doc.style.css.CSSConditionRule
getConditionText, setConditionTextMethods inherited from interface io.sf.carte.doc.style.css.CSSGroupingRule
deleteRule, getCssRules, insertRuleMethods inherited from interface io.sf.carte.doc.style.css.CSSRule
getMinifiedCssText, getParentRule, getParentStyleSheet, getPrecedingComments, getTrailingComments, setCssText, writeCssTextMethods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getType
-
Method Details
-
getCondition
BooleanCondition getCondition()Get the object model representation of the condition associated to this rule.In this implementation,
@supportspredicates implement theDeclarationConditioninterface.- Returns:
- the object model representation of the condition associated to this rule.
-
supports
Does the given style database support the condition associated to this rule ?- Parameters:
styleDatabase- the style database to test.- Returns:
trueif the style database supports the condition,falseotherwise.
-