Permalink
Browse files

Renaming PolymerHTMLElement to PolymerElement

  • Loading branch information...
manolo committed Sep 2, 2017
1 parent 1a09ff5 commit 80177d6e4e8be85a46f710d0eef5cd3c86ece6f9
@@ -7,7 +7,7 @@
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.vaadin.polymer.Polymer;
import com.vaadin.polymer.PolymerHTMLElement;
import com.vaadin.polymer.PolymerElement;
import com.vaadin.polymer.elemental.Template;
import com.vaadin.polymer.iron.IronInputElement;
@@ -36,10 +36,10 @@ public IronInputSample() {
// Wait until the template has been rendered by polymer to query the dom.
Polymer.ready(bindTemplate, o -> {
NodeList inputs = PolymerHTMLElement.as(getElement()).querySelectorAll("input");
ironInput = ((PolymerHTMLElement)inputs.item(0)).cast();
input1 = ((PolymerHTMLElement)inputs.item(1)).cast();
input2 = ((PolymerHTMLElement)inputs.item(2)).cast();
NodeList inputs = PolymerElement.as(getElement()).querySelectorAll("input");
ironInput = ((PolymerElement)inputs.item(0)).cast();
input1 = ((PolymerElement)inputs.item(1)).cast();
input2 = ((PolymerElement)inputs.item(2)).cast();
return null;
});
@@ -11,7 +11,7 @@
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.vaadin.polymer.Polymer;
import com.vaadin.polymer.PolymerHTMLElement;
import com.vaadin.polymer.PolymerElement;
import com.vaadin.polymer.demo.client.sampler.Sampler;
import com.vaadin.polymer.iron.event.IronSelectEvent;
import com.vaadin.polymer.paper.PaperMenuElement;
@@ -53,7 +53,7 @@ public VaadinContextMenuSample() {
// Demo 2
// We have a global list of contacts
grid.setItems(Sampler.contacts);
gridcontext.setListenOn(PolymerHTMLElement.as(grid.getElement()));
gridcontext.setListenOn(PolymerElement.as(grid.getElement()));
// We have to wait until the overlay is attached to the DOM.
// vaadin-contex-menu, lacks for an API able to realize when the overlay is opened
@@ -1,14 +1,16 @@
package com.vaadin.polymer.vaadin;
import com.google.gwt.core.client.JavaScriptObject;
import com.vaadin.polymer.PolymerHTMLElement;
import com.vaadin.polymer.PolymerElement;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative=true, namespace = JsPackage.GLOBAL, name = "HTMLElement")
public class VaadinGridElementBase extends PolymerHTMLElement {
import static jsinterop.annotations.JsPackage.GLOBAL;
@JsType(isNative=true, namespace = GLOBAL, name = "HTMLElement")
public class VaadinGridElementBase extends PolymerElement {
@JsFunction
interface ItemCallback {

0 comments on commit 80177d6

Please sign in to comment.