Beispiel #1
0
 /**
  * Indicates whether the image should be tiled/cropped, stretched, or centered when the size of
  * this widget does not match the size of the image. CENTER shows the image in it's natural size,
  * but can't do so while the transparency fix is active for IE. The transparency fix can be
  * manually disabled by setting {@link com.smartgwt.client.widgets.Img#getUsePNGFix usePNGFix} to
  * false. See ImageStyle for further details.
  *
  * @return ImageStyle
  * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods
  */
 public ImageStyle getImageType() {
   return EnumUtil.getEnum(ImageStyle.values(), getAttribute("imageType"));
 }
Beispiel #2
0
 /**
  * Indicates whether the image should be tiled/cropped, stretched, or centered when the size of
  * this widget does not match the size of the image. CENTER shows the image in it's natural size,
  * but can't do so while the transparency fix is active for IE. The transparency fix can be
  * manually disabled by setting {@link com.smartgwt.client.widgets.Img#getUsePNGFix usePNGFix} to
  * false. See ImageStyle for further details. <br>
  * <br>
  * If this method is called after the component has been drawn/initialized: Change the style of
  * image rendering.
  *
  * @param imageType new style of image rendering. Default value is Img.STRETCH
  * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods
  */
 public void setImageType(ImageStyle imageType) {
   setAttribute("imageType", imageType == null ? null : imageType.getValue(), true);
 }