Class MediaQuery
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.parser.media.MediaQuery
-
- All Implemented Interfaces:
Serializable,Locatable
public class MediaQuery extends AbstractLocatable implements Serializable
MediaQuery class.
- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MediaQuery(String media)Ctor.MediaQuery(String media, boolean isOnly, boolean isNot)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMediaProperty(Property mp)Adds a property to the list.StringgetMedia()getMedia.List<Property>getProperties()getProperties.booleanisNot()isNot.booleanisOnly()isOnly.StringtoString()-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
-
-
-
Method Detail
-
getMedia
public String getMedia()
getMedia.
- Returns:
- the media
-
addMediaProperty
public void addMediaProperty(Property mp)
Adds a property to the list.- Parameters:
mp- the property to add
-
isOnly
public boolean isOnly()
isOnly.
- Returns:
- the is only flag
-
isNot
public boolean isNot()
isNot.
- Returns:
- the is not flag
-
-