Interface MediaQueryFactory

All Superinterfaces:
BooleanConditionFactory

public interface MediaQueryFactory extends BooleanConditionFactory
Contains factory methods related to media queries.
  • Method Details

    • createPredicate

      MediaFeaturePredicate createPredicate(String featureName)
      Create a media feature predicate.
      Specified by:
      createPredicate in interface BooleanConditionFactory
      Parameters:
      featureName - the name of the media feature.
      Returns:
      the condition.
    • createMediaTypePredicate

      MediaQueryPredicate createMediaTypePredicate(String medium)
      Create a predicate that contains a media type.
      Parameters:
      medium - the media type.
      Returns:
      the predicate.
    • createMediaQueryHandler

      MediaQueryHandler createMediaQueryHandler(Node owner)
      Create a handler attached to a new media query list.
      Parameters:
      owner - the node that owns the responsibility to handle the errors in the query list.
      Returns:
      the media query handler.
    • createAllMedia

      MediaQueryList createAllMedia()
      Create a media query list for all media.
      Returns:
      a new media query list for all media.