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)
Tries to find and load image with the given name.
|
javax.microedition.lcdui.Image |
loadImage(java.lang.String imageName,
int viewBackGroundcolor)
Tries to find and load image with the given name.
|
javax.microedition.lcdui.Image |
loadImage(java.lang.String imageName,
int viewBackGroundcolor,
int parentsWidth)
Tries to find and load image with the given name.
|
java.lang.String |
loadWWWResource(com.softwareag.mobile.runtime.nui.nUIObject target,
java.lang.String fileName,
java.lang.String prefix,
java.lang.String encoding)
Loads the given html file to the string
|
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)
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.
return content of the given file.javax.microedition.lcdui.Image getDefaultPlaceHolderImage()
javax.microedition.lcdui.Image loadImage(java.lang.String imageName)
loadImage(String, int, int)
for more detailsjavax.microedition.lcdui.Image loadImage(java.lang.String imageName, int viewBackGroundcolor)
loadImage(String, int, int)
for more detailsjavax.microedition.lcdui.Image loadImage(java.lang.String imageName, int viewBackGroundcolor, int parentsWidth)
#defaultPlaceHolderImage
will be returned. Following paths
are used for searching in the given ordering:
AbstractApplicationController#getAndroidGraphicsFolder(int, int)
AbstractApplicationController#getBlackBerryGraphicsFolder(int, int, int)
AbstractApplicationController#getIOSGraphicsFolders(int, int)
AbstractApplicationController#getWinPhoneGraphicFolder(int, int, int)
see also
AbstractApplicationController#getWinPhoneThemeFolder(int)
AbstractApplicationController#getGeneralGraphicsFolder(int, int)
name
- filename to loadviewBackGroundcolor
- background color of view, where image will be showncontainerWidth
- width of container, where image will be shown. if value is -1,
then the smallest side of screen will used as containerWidthjavax.microedition.lcdui.Image resizeImage(javax.microedition.lcdui.Image image, int width, int height)
ImageHandler#resizeImage(Image, int, int, boolean)
for more
details.