Example usage for com.google.gwt.event.logical.shared HasOpenHandlers fireEvent

List of usage examples for com.google.gwt.event.logical.shared HasOpenHandlers fireEvent

Introduction

In this page you can find the example usage for com.google.gwt.event.logical.shared HasOpenHandlers fireEvent.

Prototype

void fireEvent(GwtEvent<?> event);

Source Link

Document

Fires the given event to the handlers listening to the event's type.

Usage

From source file:com.kk_electronic.kkportal.core.event.FrameReceivedEvent.java

License:Open Source License

/**
 * Fires a open event on all registered handlers in the handler manager.If
 * no such handlers exist, this method will do nothing.
 * /*from   ww  w.  j  a va  2 s  .  c  o  m*/
 * @param <T>
 *            the target type
 * @param source
 *            the source of the handlers
 * @param target
 *            the target
 */
public static <T> void fire(HasOpenHandlers<T> source, String data) {
    if (TYPE != null) {
        FrameReceivedEvent event = new FrameReceivedEvent(data);
        source.fireEvent(event);
    }
}

From source file:com.kk_electronic.kkportal.core.event.FrameSentEvent.java

License:Open Source License

/**
 * Fires a open event on all registered handlers in the handler manager.If no
 * such handlers exist, this method will do nothing.
 * /*from w w w.  ja v a2 s .  c  o  m*/
 * @param <T> the target type
 * @param source the source of the handlers
 * @param target the target
 */
public static <T> void fire(HasOpenHandlers<T> source) {
    if (TYPE != null) {
        FrameSentEvent event = new FrameSentEvent();
        source.fireEvent(event);
    }
}