Package io.sf.carte.doc.style.css.om
Interface MediaFeature
- All Superinterfaces:
BooleanCondition
,MediaFeaturePredicate
,MediaQueryPredicate
Media Feature.
Represents a predicate like (min-width: 600px)
or
(400px <= width < 1000px)
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.BooleanCondition
BooleanCondition.Type
-
Field Summary
Fields inherited from interface io.sf.carte.doc.style.css.MediaFeaturePredicate
FEATURE_EQ, FEATURE_GE, FEATURE_GE_AND_GE, FEATURE_GE_AND_GT, FEATURE_GT, FEATURE_GT_AND_GE, FEATURE_GT_AND_GT, FEATURE_LE, FEATURE_LE_AND_LE, FEATURE_LE_AND_LT, FEATURE_LT, FEATURE_LT_AND_LE, FEATURE_LT_AND_LT, FEATURE_PLAIN
Fields inherited from interface io.sf.carte.doc.style.css.MediaQueryPredicate
MEDIA_FEATURE, MEDIA_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionIf this is a range feature test involving two values, get the second value.getValue()
Get the value to be tested on the feature.Methods inherited from interface io.sf.carte.doc.style.css.BooleanCondition
addCondition, appendMinifiedText, appendText, getNestedCondition, getParentCondition, getSubConditions, getType, replaceLast, setParentCondition
Methods inherited from interface io.sf.carte.doc.style.css.MediaFeaturePredicate
getName, getRangeType, setRangeType, setValue, setValueRange
Methods inherited from interface io.sf.carte.doc.style.css.MediaQueryPredicate
getPredicateType
-
Method Details
-
getValue
CSSTypedValue getValue()Get the value to be tested on the feature. If the predicate involves two values, this is the first value.- Returns:
- the value to be tested on the feature.
-
getRangeSecondValue
CSSTypedValue getRangeSecondValue()If this is a range feature test involving two values, get the second value.- Returns:
- the second value in this range test, or
null
if this is not a range feature or the range only involves one value.
-