@Override public ImagePrototypeElement createElement() { return (ImagePrototypeElement) impl.createStructure(url, left, top, width, height); }
ClippedState(Image image, SafeUri url, int left, int top, int width, int height) { this.left = left; this.top = top; this.width = width; this.height = height; this.url = url; image.replaceElement(impl.createStructure(url, left, top, width, height)); // Todo(ecc) This is wrong, we should not be sinking these here on such a // common widget.After the branch is stable, this should be fixed. image.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK | Event.MOUSEEVENTS | Event.ONMOUSEWHEEL | Event.ONLOAD | Event.TOUCHEVENTS | Event.GESTUREEVENTS); }
@Override public ImagePrototypeElement createElement() { return (ImagePrototypeElement) impl.createStructure(url, left, top, width, height); }
@Override public ImagePrototypeElement createElement() { return (ImagePrototypeElement) impl.createStructure(url, left, top, width, height); }
ClippedState(Image image, SafeUri url, int left, int top, int width, int height) { this.left = left; this.top = top; this.width = width; this.height = height; this.url = url; image.replaceElement(impl.createStructure(url, left, top, width, height)); // Todo(ecc) This is wrong, we should not be sinking these here on such a // common widget.After the branch is stable, this should be fixed. image.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK | Event.MOUSEEVENTS | Event.ONMOUSEWHEEL | Event.ONLOAD | Event.TOUCHEVENTS | Event.GESTUREEVENTS); }
ClippedState(Image image, SafeUri url, int left, int top, int width, int height) { this.left = left; this.top = top; this.width = width; this.height = height; this.url = url; image.replaceElement(impl.createStructure(url, left, top, width, height)); // Todo(ecc) This is wrong, we should not be sinking these here on such a // common widget.After the branch is stable, this should be fixed. image.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK | Event.MOUSEEVENTS | Event.ONMOUSEWHEEL | Event.ONLOAD | Event.TOUCHEVENTS | Event.GESTUREEVENTS); }