本文整理了Java中com.google.gwt.user.client.ui.Image.changeState()
方法的一些代码示例,展示了Image.changeState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.changeState()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Image
类名称:Image
方法名:changeState
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates an image with a specified URL. The load event will be fired once
* the image at the given URL has been retrieved by the browser.
*
* @param url the URL of the image to be displayed
*/
public Image(SafeUri url) {
changeState(new UnclippedState(this, url));
setStyleName("gwt-Image");
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates an empty image.
*/
public Image() {
changeState(new UnclippedState(this));
setStyleName("gwt-Image");
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates a clipped image with a specified URL and visibility rectangle. The
* visibility rectangle is declared relative to the rectangle which
* encompasses the entire image, which has an upper-left vertex of (0,0). The
* load event will be fired immediately after the object has been constructed
* (i.e. potentially before the image has been loaded in the browser). Since
* the width and height are specified explicitly by the user, this behavior
* will not cause problems with retrieving the width and height of a clipped
* image in a load event handler.
*
* @param url the URL of the image to be displayed
* @param left the horizontal co-ordinate of the upper-left vertex of the
* visibility rectangle
* @param top the vertical co-ordinate of the upper-left vertex of the
* visibility rectangle
* @param width the width of the visibility rectangle
* @param height the height of the visibility rectangle
*/
public Image(SafeUri url, int left, int top, int width, int height) {
changeState(new ClippedState(this, url, left, top, width, height));
setStyleName("gwt-Image");
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* This constructor may be used by subclasses to explicitly use an existing
* element. This element must be an <img> element.
*
* @param element the element to be used
*/
protected Image(Element element) {
ImageElement.as(element);
setElement(element);
changeState(new UnclippedState(element));
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates an image whose size and content are defined by an ImageResource.
*
* @param resource the ImageResource to be displayed
*/
public Image(ImageResource resource) {
if (resource instanceof ImageResourcePrototype.Bundle) {
changeState(new ClippedState(this, resource.getSafeUri(), resource.getLeft(),
resource.getTop(), resource.getWidth(), resource.getHeight()));
} else {
changeState(new UnclippedState(this, resource.getSafeUri(), resource.getWidth(),
resource.getHeight()));
}
setStyleName("gwt-Image");
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates an empty image.
*/
public Image() {
changeState(new UnclippedState(this));
setStyleName("gwt-Image");
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates an image with a specified URL. The load event will be fired once
* the image at the given URL has been retrieved by the browser.
*
* @param url the URL of the image to be displayed
*/
public Image(SafeUri url) {
changeState(new UnclippedState(this, url));
setStyleName("gwt-Image");
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates an empty image.
*/
public Image() {
changeState(new UnclippedState(this));
setStyleName("gwt-Image");
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates an image with a specified URL. The load event will be fired once
* the image at the given URL has been retrieved by the browser.
*
* @param url the URL of the image to be displayed
*/
public Image(SafeUri url) {
changeState(new UnclippedState(this, url));
setStyleName("gwt-Image");
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates a clipped image with a specified URL and visibility rectangle. The
* visibility rectangle is declared relative to the rectangle which
* encompasses the entire image, which has an upper-left vertex of (0,0). The
* load event will be fired immediately after the object has been constructed
* (i.e. potentially before the image has been loaded in the browser). Since
* the width and height are specified explicitly by the user, this behavior
* will not cause problems with retrieving the width and height of a clipped
* image in a load event handler.
*
* @param url the URL of the image to be displayed
* @param left the horizontal co-ordinate of the upper-left vertex of the
* visibility rectangle
* @param top the vertical co-ordinate of the upper-left vertex of the
* visibility rectangle
* @param width the width of the visibility rectangle
* @param height the height of the visibility rectangle
*/
public Image(SafeUri url, int left, int top, int width, int height) {
changeState(new ClippedState(this, url, left, top, width, height));
setStyleName("gwt-Image");
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates a clipped image with a specified URL and visibility rectangle. The
* visibility rectangle is declared relative to the rectangle which
* encompasses the entire image, which has an upper-left vertex of (0,0). The
* load event will be fired immediately after the object has been constructed
* (i.e. potentially before the image has been loaded in the browser). Since
* the width and height are specified explicitly by the user, this behavior
* will not cause problems with retrieving the width and height of a clipped
* image in a load event handler.
*
* @param url the URL of the image to be displayed
* @param left the horizontal co-ordinate of the upper-left vertex of the
* visibility rectangle
* @param top the vertical co-ordinate of the upper-left vertex of the
* visibility rectangle
* @param width the width of the visibility rectangle
* @param height the height of the visibility rectangle
*/
public Image(SafeUri url, int left, int top, int width, int height) {
changeState(new ClippedState(this, url, left, top, width, height));
setStyleName("gwt-Image");
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* This constructor may be used by subclasses to explicitly use an existing
* element. This element must be an <img> element.
*
* @param element the element to be used
*/
protected Image(Element element) {
ImageElement.as(element);
setElement(element);
changeState(new UnclippedState(element));
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* This constructor may be used by subclasses to explicitly use an existing
* element. This element must be an <img> element.
*
* @param element the element to be used
*/
protected Image(Element element) {
ImageElement.as(element);
setElement(element);
changeState(new UnclippedState(element));
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates an image whose size and content are defined by an ImageResource.
*
* @param resource the ImageResource to be displayed
*/
public Image(ImageResource resource) {
if (resource instanceof ImageResourcePrototype.Bundle) {
changeState(new ClippedState(this, resource.getSafeUri(), resource.getLeft(),
resource.getTop(), resource.getWidth(), resource.getHeight()));
} else {
changeState(new UnclippedState(this, resource.getSafeUri(), resource.getWidth(),
resource.getHeight()));
}
setStyleName("gwt-Image");
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates an image whose size and content are defined by an ImageResource.
*
* @param resource the ImageResource to be displayed
*/
public Image(ImageResource resource) {
if (resource instanceof ImageResourcePrototype.Bundle) {
changeState(new ClippedState(this, resource.getSafeUri(), resource.getLeft(),
resource.getTop(), resource.getWidth(), resource.getHeight()));
} else {
changeState(new UnclippedState(this, resource.getSafeUri(), resource.getWidth(),
resource.getHeight()));
}
setStyleName("gwt-Image");
}
内容来源于网络,如有侵权,请联系作者删除!