Example usage for com.google.gwt.user.client.ui Image setUrlAndVisibleRect

List of usage examples for com.google.gwt.user.client.ui Image setUrlAndVisibleRect

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui Image setUrlAndVisibleRect.

Prototype

public void setUrlAndVisibleRect(String url, int left, int top, int width, int height) 

Source Link

Document

Sets the url and the visibility rectangle for the image at the same time.

Usage

From source file:sk.seges.acris.widget.client.table.PagingOptions.java

License:Apache License

protected void applyImage(Image image, ImageResource imageResource) {
    image.setUrlAndVisibleRect(imageResource.getURL(), imageResource.getLeft(), imageResource.getTop(),
            imageResource.getWidth(), imageResource.getHeight());
}