All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.iron.widget.IronMediaQuery Maven / Gradle / Ivy

The newest version!
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from iron-media-query project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.iron.widget;

import com.vaadin.polymer.iron.*;

import com.vaadin.polymer.*;
import com.vaadin.polymer.elemental.*;
import com.vaadin.polymer.PolymerWidget;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

iron-media-query can be used to data bind to a CSS media query.
The query property is a bare CSS media query.
The query-matches property is a boolean representing whether the page matches that media query.

*

Example:

*
<iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"></iron-media-query>
 * 
 * 
 * 
*/ public class IronMediaQuery extends PolymerWidget { /** * Default Constructor. */ public IronMediaQuery() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public IronMediaQuery(String html) { super(IronMediaQueryElement.TAG, IronMediaQueryElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public IronMediaQueryElement getPolymerElement() { return (IronMediaQueryElement) getElement(); } /** *

If true, the query attribute is assumed to be a complete media query
string rather than a single media feature.

* * JavaScript Info: * @property full * @type Boolean * */ public boolean getFull() { return getPolymerElement().getFull(); } /** *

If true, the query attribute is assumed to be a complete media query
string rather than a single media feature.

* * JavaScript Info: * @property full * @type Boolean * */ public void setFull(boolean value) { getPolymerElement().setFull(value); } /** *

The Boolean return value of the media query.

* * JavaScript Info: * @property queryMatches * @type Boolean * */ public boolean getQueryMatches() { return getPolymerElement().getQueryMatches(); } /** *

The Boolean return value of the media query.

* * JavaScript Info: * @property queryMatches * @type Boolean * */ public void setQueryMatches(boolean value) { getPolymerElement().setQueryMatches(value); } /** *

The CSS media query to evaluate.

* * JavaScript Info: * @property query * @type String * */ public String getQuery() { return getPolymerElement().getQuery(); } /** *

The CSS media query to evaluate.

* * JavaScript Info: * @property query * @type String * */ public void setQuery(String value) { getPolymerElement().setQuery(value); } /** * * * JavaScript Info: * @method queryHandler * @param {} mq * * */ public void queryHandler(Object mq) { getPolymerElement().queryHandler(mq); } /** * * * JavaScript Info: * @method queryChanged * * */ public void queryChanged() { getPolymerElement().queryChanged(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy