- All Superinterfaces:
BooleanConditionFactory
- All Known Implementing Classes:
CSSValueMediaQueryFactory
Contains factory methods related to media queries.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a media query list for all media.createMediaQueryHandler
(Node owner) Create a handler attached to a new media query list.createMediaTypePredicate
(String medium) Create a predicate that contains a media type.createPredicate
(String featureName) Create a media feature predicate.Methods inherited from interface io.sf.carte.doc.style.css.BooleanConditionFactory
createAndCondition, createNotCondition, createOrCondition
-
Method Details
-
createPredicate
Create a media feature predicate.- Specified by:
createPredicate
in interfaceBooleanConditionFactory
- Parameters:
featureName
- the name of the media feature.- Returns:
- the condition.
-
createMediaTypePredicate
Create a predicate that contains a media type.- Parameters:
medium
- the media type.- Returns:
- the predicate.
-
createMediaQueryHandler
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.
-