APIdia Launch Partner
Top Constructors Methods
com.sun.javafx.css.media

public final Class MediaQueryList

extends ArrayList<MediaQuery>
Class Inheritance
Imports
javafx.css.StyleConverter, java.io.DataInputStream, .DataOutputStream, .IOException, java.util.ArrayList

Constructor Summary

AccessConstructor and Description
public
public
MediaQueryList(int capacity)

Method Summary

Modifier and TypeMethod and Description
public TriState

Returns:

TriState#TRUE if the media query list is always true, TriState#FALSE if the media query list is always false, otherwise TriState#UNKNOWN
evaluate
()

Attempts to determine the result of this media query list without a MediaQueryContext, and returns TriState#TRUE if at least one media query is TRUE, TriState#FALSE if all media queries are FALSE, or TriState#UNKNOWN otherwise.

public boolean

Returns:

true if any of the media queries is true or if the list is empty, false otherwise
evaluate
(MediaQueryContext
the evaluation context
context
)

Evaluates whether any of the media queries is true.

public static MediaQueryList
readBinary(DataInputStream stream, String[] strings)

public void
Inherited from java.util.ArrayList:
addaddaddAlladdAlladdFirstaddLastclearclonecontainsensureCapacityequalsforEachgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveAllremoveFirstremoveIfremoveLastremoveRangereplaceAllretainAllsetsizesortspliteratorsubListtoArraytoArraytrimToSize

Constructor Detail

MediaQueryListback to summary
public MediaQueryList()
MediaQueryListback to summary
public MediaQueryList(int capacity)

Method Detail

evaluateback to summary
public TriState evaluate()

Attempts to determine the result of this media query list without a MediaQueryContext, and returns TriState#TRUE if at least one media query is TRUE, TriState#FALSE if all media queries are FALSE, or TriState#UNKNOWN otherwise.

Returns:TriState

TriState#TRUE if the media query list is always true, TriState#FALSE if the media query list is always false, otherwise TriState#UNKNOWN

evaluateback to summary
public boolean evaluate(MediaQueryContext context)

Evaluates whether any of the media queries is true.

Parameters
context:MediaQueryContext

the evaluation context

Returns:boolean

true if any of the media queries is true or if the list is empty, false otherwise

readBinaryback to summary
public static MediaQueryList readBinary(DataInputStream stream, String[] strings) throws IOException
writeBinaryback to summary
public void writeBinary(DataOutputStream stream, StyleConverter.StringStore stringStore) throws IOException