- All Superinterfaces:
CSSDeclarationRule
,CSSRule
,CSSRule
- All Known Implementing Classes:
StyleRule
A CSS style 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, 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 TypeMethodDescriptionThe selectors of this style rule.Get a parsable serialization of the selector(s).void
setSelectorList
(SelectorList selectorList) Set the selectors of this style rule.void
setSelectorText
(String selectorText) Parse the given string and set the selector list according to it.Methods inherited from interface io.sf.carte.doc.style.css.CSSDeclarationRule
getStyle, getStyleDeclarationErrorHandler
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
-
getSelectorText
String getSelectorText()Get a parsable serialization of the selector(s).- Returns:
- a parsable serialization of the selector list.
-
setSelectorText
Parse the given string and set the selector list according to it.- Parameters:
selectorText
- a text representation of a selector list, according to CSS syntax.- Throws:
DOMException
-
getSelectorList
SelectorList getSelectorList()The selectors of this style rule.- Returns:
- the selector list.
-
setSelectorList
Set the selectors of this style rule.- Parameters:
selectorList
- the selector list.- Throws:
NullPointerException
- ifselectorList
is null.IllegalArgumentException
- ifselectorList
is empty.
-