com.vaadin.polymer.iron.widget.IronSignals Maven / Gradle / Ivy
The newest version!
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-signals 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-signals
provides basic publish-subscribe functionality.
* Note: avoid using iron-signals
whenever you can use
a controller (parent element) to mediate communication
instead.
* To send a signal, fire a custom event of type iron-signal
, with
a detail object containing name
and data
fields.
* this.fire('iron-signal', {name: 'hello', data: null});
*
*
*
To receive a signal, listen for iron-signal-<name>
event on a
iron-signals
element.
*
*
* You can fire a signal event from anywhere, and all
iron-signals
elements will receive the event, regardless
of where they are in DOM.
*/
public class IronSignals extends PolymerWidget {
/**
* Default Constructor.
*/
public IronSignals() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public IronSignals(String html) {
super(IronSignalsElement.TAG, IronSignalsElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public IronSignalsElement getPolymerElement() {
return (IronSignalsElement) getElement();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy