All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.ImageStatePatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Image;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;
import com.googlecode.gwt.test.utils.events.Browser;
import com.googlecode.gwt.test.utils.events.EventBuilder;

@PatchClass(target = "com.google.gwt.user.client.ui.Image$State")
class ImageStatePatcher {

    @PatchMethod
    static void fireSyntheticLoadEvent(Object state, Image image) {
        Event loadEvent = EventBuilder.create(Event.ONLOAD).build();
        Browser.dispatchEvent(image, loadEvent);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy