/** * Called when the widget is attached to the page. Not to be confused with * the load event that fires when the image loads. * * @param image the widget */ public void onLoad(Image image) { // If an onload event fired while the image wasn't attached, we need to // synthesize one now. String unhandledEvent = getImageElement(image).getPropertyString(UNHANDLED_EVENT_ATTR); if (BrowserEvents.LOAD.equals(unhandledEvent)) { fireSyntheticLoadEvent(image); } }
/** * Called when the widget is attached to the page. Not to be confused with * the load event that fires when the image loads. * * @param image the widget */ public void onLoad(Image image) { // If an onload event fired while the image wasn't attached, we need to // synthesize one now. String unhandledEvent = getImageElement(image).getPropertyString(UNHANDLED_EVENT_ATTR); if (BrowserEvents.LOAD.equals(unhandledEvent)) { fireSyntheticLoadEvent(image); } }
/** * Called when the widget is attached to the page. Not to be confused with * the load event that fires when the image loads. * * @param image the widget */ public void onLoad(Image image) { // If an onload event fired while the image wasn't attached, we need to // synthesize one now. String unhandledEvent = getImageElement(image).getPropertyString(UNHANDLED_EVENT_ATTR); if (BrowserEvents.LOAD.equals(unhandledEvent)) { fireSyntheticLoadEvent(image); } }