public class ImageElementStyle
extends java.lang.Object
ImageElementStyle
must be used to edit properties for
ImageElements in combination with the native ListView
feature.
It delegates all properties directly to the native element.
This class has only an effect by using the native ListView
feature.
Constructor and Description |
---|
ImageElementStyle(java.lang.Object imageElement)
Creates this style by passing either an
nUIImageElement or an
Android ImageView. |
Modifier and Type | Method and Description |
---|---|
int |
getBgColor()
Returns the background color of the underlying Android element or if used
in Phoney, the color of the parent
nUITablecellElement . |
javax.microedition.lcdui.Image |
getImage()
Returns the displayed image.
|
ImageElementStyle |
setAlpha(float alpha)
Sets the alpha value for the underlying Android ImageView.
|
ImageElementStyle |
setBgColor(int bgColor)
Sets the background of the underlying Android element or if used in
Phoney, the color of the parent
nUITablecellElement . |
ImageElementStyle |
setImage(javax.microedition.lcdui.Image image)
Sets the image to be displayed.
|
public ImageElementStyle(java.lang.Object imageElement)
nUIImageElement
or an
Android ImageView.imageElement
- public ImageElementStyle setImage(javax.microedition.lcdui.Image image)
image
- public javax.microedition.lcdui.Image getImage()
public ImageElementStyle setAlpha(float alpha)
alpha
- public ImageElementStyle setBgColor(int bgColor)
nUITablecellElement
.bgColor
- public int getBgColor()
nUITablecellElement
.