Class Media
java.lang.Object
org.eclipse.e4.ui.css.core.impl.dom.Media
Media query model for
@media rules.
The media types all and screen match, plus vendor features
for the operating system, the windowing system, the operating system version
and the installed bundles. Unknown types, features and values evaluate to
false, as Media Queries requires.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceLooks a bundle's version up by symbolic name.static final recordThe environment a query is evaluated against.static final recordOne(name: value)expression.static final recordA single media query: an optionalnot, a media type and the features joined to it withand. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFeature naming a bundle that has to be installed.static final StringFeature naming a bundle and its version, e.g.static final StringUpper bound on a bundle's version, inclusive.static final StringUpper bound on the operating system version, inclusive.static final StringLower bound on a bundle's version, inclusive.static final StringLower bound on the operating system version, inclusive.static final StringFeature naming the operating system, e.g.static final StringFeature naming the operating system version, e.g.static final StringFeature naming the windowing system, e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmatches(List<Media.Query> queries, Media.Context context) Whether a comma separated query list applies.
-
Field Details
-
FEATURE_OS
-
FEATURE_WS
-
FEATURE_OS_VERSION
Feature naming the operating system version, e.g."10.15".- See Also:
-
FEATURE_MIN_OS_VERSION
Lower bound on the operating system version, inclusive.- See Also:
-
FEATURE_MAX_OS_VERSION
Upper bound on the operating system version, inclusive.- See Also:
-
FEATURE_BUNDLE
Feature naming a bundle that has to be installed.- See Also:
-
FEATURE_BUNDLE_VERSION
Feature naming a bundle and its version, e.g."org.eclipse.ui 3.2".- See Also:
-
FEATURE_MIN_BUNDLE_VERSION
Lower bound on a bundle's version, inclusive.- See Also:
-
FEATURE_MAX_BUNDLE_VERSION
Upper bound on a bundle's version, inclusive.- See Also:
-
-
Method Details
-
matches
Whether a comma separated query list applies. Any query matching is enough, and an empty list matches everything.
-