public interface IResourceController
Modifier and Type | Method and Description |
---|---|
javax.microedition.lcdui.Image |
getDefaultPlaceHolderImage()
Return the default place holder image that will be used if requested image
was not found.
|
javax.microedition.lcdui.Image |
loadImage(java.lang.String imageName)
Loads an icon asset specified by it's name.
|
java.lang.String |
loadWWWResource(com.softwareag.mobile.runtime.nui.nUIObject target,
java.lang.String fileName,
java.lang.String prefix,
java.lang.String encoding)
Deprecated.
use
AbstractApplicationController#loadWWWResource(String)
or
AbstractApplicationController#loadWWWResource(String, String)
Might be removed with the next release. |
javax.microedition.lcdui.Image |
resizeImage(javax.microedition.lcdui.Image image,
int width,
int height)
Resize the given image.
|
java.lang.String loadWWWResource(com.softwareag.mobile.runtime.nui.nUIObject target, java.lang.String fileName, java.lang.String prefix, java.lang.String encoding)
AbstractApplicationController#loadWWWResource(String)
or
AbstractApplicationController#loadWWWResource(String, String)
Might be removed with the next release.target
- object that triggers the callfileName
- requested html fileprefix
- relative path, where the given file is supposed to be found.encoding
- this encoding will be used by reading the html file.javax.microedition.lcdui.Image getDefaultPlaceHolderImage()
javax.microedition.lcdui.Image loadImage(java.lang.String imageName)
There are two types of icon assets:
The loading of .asset icons depend on the target platform. Please see
AssetImageLoader
for more details.
To load .png assets, this method uses a search path according to:
AbstractApplicationController#getAndroidGraphicsFolder(int, int)
AbstractApplicationController#getIOSGraphicsFolders(int, int)
AbstractApplicationController#getWinPhoneGraphicFolder(int, int, int)
see also
AbstractApplicationController#getWinPhoneThemeFolder(int)
A default placeholder, configurable by overwriting
#defaultPlaceHolderImage
, will be returned if the asset could not be
found.
imageName
- filename to loadjavax.microedition.lcdui.Image resizeImage(javax.microedition.lcdui.Image image, int width, int height)
ImageHandler#resizeImage(Image, int, int, boolean)
for more details.image
- width
- height
-