public class ImageLoaderTask
extends java.lang.Object
implements java.lang.Runnable
nUIImageElement
at a later time, when information about the parent's
width becomes available.
Constructor and Description |
---|
ImageLoaderTask(IResourceController controller,
com.softwareag.mobile.runtime.nui.nUIImageElement imageElement,
java.lang.String imageName,
boolean scaleToParentsWidth,
boolean scaleToParentsHeight)
This constructor stores all required information to load image at later
time.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Loads image, scales it if needed and set it to the stored
nUIImageElement instance. |
public ImageLoaderTask(IResourceController controller, com.softwareag.mobile.runtime.nui.nUIImageElement imageElement, java.lang.String imageName, boolean scaleToParentsWidth, boolean scaleToParentsHeight)
controller
- This controller loads the desired image.imageElement
- Instance of nUIImageElement
that will show the image.imageName
- Image to be loaded.scaleToParentsWidth
- If set, image scales to the parent's width.scaleToParentsHeight
- If set, image scales to the parent's height.