public interface ICSSRule extends ICSSNode
UNKNOWN
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<ICSSMediaQueryCondition> |
getMediaQueryConditions()
Get a list of media query conditions associated with this CSS rule.
|
com.google.common.collect.ImmutableList<ICSSProperty> |
getProperties()
Get the CSS properties in their declared order.
|
com.google.common.collect.ImmutableList<ICSSSelector> |
getSelectorGroup()
Get all the subjects in the selector group in their declared order.
|
getArity, getNthChild, getOperator, toStringTree
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
com.google.common.collect.ImmutableList<ICSSMediaQueryCondition> getMediaQueryConditions()
ICSSMediaQueryCondition
objects; Null if the
rule is not enclosed in a media query.com.google.common.collect.ImmutableList<ICSSSelector> getSelectorGroup()
A CSS rule can have one or many selectors separated by comma(s). Each selector has a subject.
The element of the right most simple selector in an
ICSSSelector
is the subject of the current selector
object.
Example: selector subject.
Subject for "s|HBox s|Button.round s|Label.dark
" is "Label".
Subject for "s|Panel .noskin
" is "*". (".noskin
" is the
implicit form of "*.noskin
").
The subject selector is the root of the combination of simple selectors in this "chain".
Example: selector combination.
A > B C ~ D E
"E" is the subject. Its linked to "D" as descendant; "D" is linked
to "C" as general sibling; "B" is the child of "A".
Starting from the subject, you can walk up the chain right to left.
Example: CSS rule with selector group.
s|HBox .rounded s|Label.big, s|VBox .rounded s|Label.small { fontWeight:bold; }The return value for the above rule would be list
[s|Label, s|Label]
.com.google.common.collect.ImmutableList<ICSSProperty> getProperties()
Copyright © 2016 The Apache Software Foundation. All rights reserved.