Example usage for com.google.gwt.dom.client ImageElement TAG

List of usage examples for com.google.gwt.dom.client ImageElement TAG

Introduction

In this page you can find the example usage for com.google.gwt.dom.client ImageElement TAG.

Prototype

String TAG

To view the source code for com.google.gwt.dom.client ImageElement TAG.

Click Source Link

Usage

From source file:fr.putnami.pwt.core.widget.client.Image.java

License:Open Source License

public Image() {
    super(ImageElement.TAG);
    this.imgElement = ImageElement.as(this.getElement());
}

From source file:info.magnolia.ui.vaadin.gwt.client.layout.thumbnaillayout.widget.ThumbnailsSizeKeeper.java

License:Open Source License

private void doSetThumbnailSize(int width, int height, Element element) {
    final Style style = element.getStyle();
    style.setFontSize(width * 0.75d, Style.Unit.PX);
    style.setWidth(width, Style.Unit.PX);
    style.setHeight(height, Style.Unit.PX);

    Style imageStyle = element.getElementsByTagName(ImageElement.TAG).getItem(0).getStyle();
    imageStyle.setProperty("maxWidth", width + "px");
    imageStyle.setProperty("maxHeight", height + "px");
}