Package com.google.gwt.resources.client
Annotation Type ImageResource.ImageOptions
-
@Documented @Retention(RUNTIME) @Target(METHOD) public static @interface ImageResource.ImageOptions
Specifies additional options to control how an image is bundled.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
flipRtl
int
height
Set to a positive value to override the image's intrinsic height.boolean
preventInlining
Set totrue
to require the ImageResource to be downloaded as a separate resource at runtime.ImageResource.RepeatStyle
repeatStyle
This option affects the image bundling optimization to allow the image to be used with theCssResource
@sprite
rule where repetition of the image is desired.int
width
Set to a positive value to override the image's intrinsic width.
-
-
-
Element Detail
-
flipRtl
boolean flipRtl
Iftrue
, the image will be flipped about the y-axis whenLocaleInfo.isRTL()
returnstrue
. This is intended to be used by graphics that are sensitive to layout direction, such as arrows and disclosure indicators.- Default:
- false
-
-
-
preventInlining
boolean preventInlining
Set totrue
to require the ImageResource to be downloaded as a separate resource at runtime. Specifically, this will disable the use ofdata:
URLs or other bundling optimizations for the image. This can be used for infrequently-displayed images.- Default:
- false
-
-
-
repeatStyle
ImageResource.RepeatStyle repeatStyle
This option affects the image bundling optimization to allow the image to be used with theCssResource
@sprite
rule where repetition of the image is desired.- See Also:
- "CssResource documentation"
- Default:
- com.google.gwt.resources.client.ImageResource.RepeatStyle.None
-
-