Example usage for com.google.gwt.event.logical.shared InitializeEvent fire

List of usage examples for com.google.gwt.event.logical.shared InitializeEvent fire

Introduction

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

Prototype

public static <S extends HasInitializeHandlers & HasHandlers> void fire(S source) 

Source Link

Document

Fires a initialize event on all registered handlers in the handler source.

Usage

From source file:org.gonevertical.core.client.input.richtext.workaround.RichTextAreaImpl.java

License:Apache License

protected void onElementInitialized() {
    hookEvents();
    if (owner != null) {
        InitializeEvent.fire(owner);
    }
}

From source file:org.vectomatic.svg.edit.client.utils.ImageLoader.java

License:Open Source License

private void readNext() {
    if (images.size() < resources.length) {
        final SimpleImage image = new SimpleImage();
        images.add(image);/*from   ww w .  j a  v a 2  s.c  o  m*/
        image.addLoadHandler(new LoadHandler() {
            @Override
            public void onLoad(LoadEvent event) {
                readNext();
            }
        });
        image.setSrc(resources[images.size() - 1].getSafeUri().asString());
    } else {
        InitializeEvent.fire(this);
    }
}