com.vaadin.polymer.iron.widget.UrlBar Maven / Gradle / Ivy
The newest version!
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-demo-helpers 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;
/**
* url-bar
is a helper element that displays a simple read-only URL bar if
and only if the page is in an iframe. In this way we can demo elements that
deal with the URL in our iframe-based demo environments.
* If the page is not in an iframe, the url-bar element is not displayed.
* Styling
* The following custom properties and mixins are available for styling:
*
*
*
* Custom property
* Description
* Default
*
*
*
*
* --url-bar
* Mixin applied to the entire element
* {}
*
*
*
*/
public class UrlBar extends PolymerWidget {
/**
* Default Constructor.
*/
public UrlBar() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public UrlBar(String html) {
super(UrlBarElement.TAG, UrlBarElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public UrlBarElement getPolymerElement() {
return (UrlBarElement) getElement();
}
/**
*
*
* JavaScript Info:
* @property inIframe
* @type Object
*
*/
public JavaScriptObject getInIframe() {
return getPolymerElement().getInIframe();
}
/**
*
*
* JavaScript Info:
* @property inIframe
* @type Object
*
*/
public void setInIframe(JavaScriptObject value) {
getPolymerElement().setInIframe(value);
}
/**
*
*
* JavaScript Info:
* @property url
* @type Object
*
*/
public JavaScriptObject getUrl() {
return getPolymerElement().getUrl();
}
/**
*
*
* JavaScript Info:
* @property url
* @type Object
*
*/
public void setUrl(JavaScriptObject value) {
getPolymerElement().setUrl(value);
}
/**
*
*
* JavaScript Info:
* @property hash
* @type String
*
*/
public String getHash() {
return getPolymerElement().getHash();
}
/**
*
*
* JavaScript Info:
* @property hash
* @type String
*
*/
public void setHash(String value) {
getPolymerElement().setHash(value);
}
/**
*
*
* JavaScript Info:
* @property path
* @type String
*
*/
public String getPath() {
return getPolymerElement().getPath();
}
/**
*
*
* JavaScript Info:
* @property path
* @type String
*
*/
public void setPath(String value) {
getPolymerElement().setPath(value);
}
/**
*
*
* JavaScript Info:
* @property query
* @type String
*
*/
public String getQuery() {
return getPolymerElement().getQuery();
}
/**
*
*
* JavaScript Info:
* @property query
* @type String
*
*/
public void setQuery(String value) {
getPolymerElement().setQuery(value);
}
// Needed in UIBinder
/**
*
*
* JavaScript Info:
* @attribute in-iframe
*
*/
public void setInIframe(String value) {
Polymer.property(this.getPolymerElement(), "inIframe", value);
}
// Needed in UIBinder
/**
*
*
* JavaScript Info:
* @attribute url
*
*/
public void setUrl(String value) {
Polymer.property(this.getPolymerElement(), "url", value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy