Package io.sf.carte.doc.style.css
Interface MediaFeaturePredicate
- All Superinterfaces:
BooleanCondition
,MediaQueryPredicate
- All Known Subinterfaces:
MediaFeature
Media Feature predicate.
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
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
Fields inherited from interface io.sf.carte.doc.style.css.MediaQueryPredicate
MEDIA_FEATURE, MEDIA_TYPE
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of the feature.byte
Get the range type as was determined by the parser.void
setRangeType
(byte rangeType) If the feature is of range type, set the range type as determined by the parser.void
setValue
(LexicalUnit value) Set a single value to be tested on the feature.void
setValueRange
(LexicalUnit value1, LexicalUnit value2) Set two values in a range test.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.MediaQueryPredicate
getPredicateType
-
Field Details
-
FEATURE_PLAIN
static final byte FEATURE_PLAIN- See Also:
-
FEATURE_EQ
static final byte FEATURE_EQ- See Also:
-
FEATURE_LT
static final byte FEATURE_LT- See Also:
-
FEATURE_LE
static final byte FEATURE_LE- See Also:
-
FEATURE_GT
static final byte FEATURE_GT- See Also:
-
FEATURE_GE
static final byte FEATURE_GE- See Also:
-
FEATURE_LT_AND_LT
static final byte FEATURE_LT_AND_LT- See Also:
-
FEATURE_LT_AND_LE
static final byte FEATURE_LT_AND_LE- See Also:
-
FEATURE_LE_AND_LE
static final byte FEATURE_LE_AND_LE- See Also:
-
FEATURE_LE_AND_LT
static final byte FEATURE_LE_AND_LT- See Also:
-
FEATURE_GT_AND_GT
static final byte FEATURE_GT_AND_GT- See Also:
-
FEATURE_GE_AND_GT
static final byte FEATURE_GE_AND_GT- See Also:
-
FEATURE_GT_AND_GE
static final byte FEATURE_GT_AND_GE- See Also:
-
FEATURE_GE_AND_GE
static final byte FEATURE_GE_AND_GE- See Also:
-
-
Method Details
-
getName
String getName()Get the name of the feature.Example:
width
.- Specified by:
getName
in interfaceMediaQueryPredicate
- Returns:
- the name of the feature.
-
setRangeType
void setRangeType(byte rangeType) If the feature is of range type, set the range type as determined by the parser.- Parameters:
rangeType
- the range type according to the implementation.
-
getRangeType
byte getRangeType()Get the range type as was determined by the parser.- Returns:
- the range type according to the implementation, or zero if not a range feature.
-
setValue
Set a single value to be tested on the feature.- Parameters:
value
- the value to be tested on the feature.
-
setValueRange
Set two values in a range test.- Parameters:
value1
- the first value in this range test.value2
- the second value in this range test.
-