Interface MediaFeaturePredicate

All Superinterfaces:
BooleanCondition, MediaQueryPredicate
All Known Subinterfaces:
MediaFeature

public interface MediaFeaturePredicate extends MediaQueryPredicate
Media Feature predicate.

Represents a predicate like (min-width: 600px) or (400px <= width < 1000px).

  • Field Details

  • Method Details

    • getName

      String getName()
      Get the name of the feature.

      Example: width.

      Specified by:
      getName in interface MediaQueryPredicate
      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

      void setValue(LexicalUnit value)
      Set a single value to be tested on the feature.
      Parameters:
      value - the value to be tested on the feature.
    • setValueRange

      void setValueRange(LexicalUnit value1, LexicalUnit value2)
      Set two values in a range test.
      Parameters:
      value1 - the first value in this range test.
      value2 - the second value in this range test.