Implementation - Polymer Component Button

How can I implement this?



myContainerElement.appendChild(button);


https://github.com/vaadin/gwt-polymer-elements

// Create a new instance of PaperButton
PaperButtonElement button = Polymer.create(PaperButtonElement.TAG);

// Set some properties
button.setIcon(“polymer”);
button.setLabel(“Polymer”);
button.setRaised(true);

// Add event listeners
button.addEventListener(“click”, new EventListener() {
public void onBrowserEvent(Event event) {
// …
}
});

// Append to the document
myContainerElement.appendChild(button);

I don’t know the Polymer component but as it is a gwt client side widget you might need to (depending on what it actually does) integrate it as a server side component:

Integrating an existing GWT widget

Or as a client side component extension:

Creating an UI extension


Creating a component extension