public final class MediaQueryUtil extends Object
MediaQuery
.Modifier and Type | Method and Description |
---|---|
static MediaQuery |
getMatchingMediaQuery(int width)
Returns matching media query from configuration.
|
static Collection<MediaQuery> |
getMediaQueries()
getMediaQueries.
|
static Collection<MediaQuery> |
getMediaQueries(File mediaQueryPropertyFile)
getMediaQueries.
|
static Collection<MediaQuery> |
getMediaQueries(Properties mediaQueryProperties)
getMediaQueries.
|
static Collection<MediaQuery> |
getMediaQueries(String propertiesPath)
getMediaQueries.
|
static MediaQuery |
getMediaQueryByName(String name)
getMediaQueryByName.
|
static MediaQuery |
getMediaQueryForViewportWidth(int width)
MQ for viewport width.
|
static MediaQuery |
getNewMediaQuery(String mediaQueryName,
int lowerBound,
int upperBound)
Factory method to create
MediaQuery |
public static MediaQuery getMediaQueryForViewportWidth(int width)
MQ for viewport width.
width
- viewportpublic static MediaQuery getMatchingMediaQuery(int width)
width
- to matchpublic static Collection<MediaQuery> getMediaQueries()
getMediaQueries.
public static Collection<MediaQuery> getMediaQueries(File mediaQueryPropertyFile)
getMediaQueries.
mediaQueryPropertyFile
- to get media query definitions frompublic static Collection<MediaQuery> getMediaQueries(Properties mediaQueryProperties)
getMediaQueries.
mediaQueryProperties
- to get media query definitions frompublic static Collection<MediaQuery> getMediaQueries(String propertiesPath)
getMediaQueries.
propertiesPath
- to get properties file or resource with media query definitions frompublic static MediaQuery getMediaQueryByName(String name)
getMediaQueryByName.
name
- of media query to retrievepublic static MediaQuery getNewMediaQuery(String mediaQueryName, int lowerBound, int upperBound)
MediaQuery
mediaQueryName
- name to use for media querylowerBound
- to use as lower bound in media queryupperBound
- to use as upper bound in media queryCopyright © 2017–2022 wcm.io QA. All rights reserved.