List of usage examples for com.google.gwt.event.logical.shared InitializeEvent fire
public static <S extends HasInitializeHandlers & HasHandlers> void fire(S source)
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); } }