|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.microedition.lcdui.Item
|
+--javax.microedition.lcdui.ImageItem
Image items allow images to be used in a form
| Nested Class Summary | |
protected class |
ImageItem.Peer
Peer class that does the drawing |
| Nested classes inherited from class javax.microedition.lcdui.Item |
|
| Field Summary | |
static int |
LAYOUT_CENTER
Draw the image in the centre of the area |
static int |
LAYOUT_DEFAULT
Use the default layout |
static int |
LAYOUT_LEFT
Draw the image to the left of the area |
static int |
LAYOUT_NEWLINE_AFTER
Put a newline after the image |
static int |
LAYOUT_NEWLINE_BEFORE
Put a newline before the image |
static int |
LAYOUT_RIGHT
Draw the image to the right of the area |
| Fields inherited from class javax.microedition.lcdui.Item |
form, highlighted, label, peer |
| Constructor Summary | |
ImageItem(java.lang.String label,
Image img,
int layout,
java.lang.String altText)
Create a new image item |
|
| Method Summary | |
java.lang.String |
getAltText()
Get the alternate text |
Image |
getImage()
Get the image |
int |
getLayout()
Get the layout |
void |
setAltText(java.lang.String altText)
Set the alternate text |
void |
setImage(Image img)
Set the image |
void |
setLayout(int layout)
Set the layout |
| Methods inherited from class javax.microedition.lcdui.Item |
getLabel, setLabel |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LAYOUT_DEFAULT
public static final int LAYOUT_LEFT
public static final int LAYOUT_RIGHT
public static final int LAYOUT_CENTER
public static final int LAYOUT_NEWLINE_BEFORE
public static final int LAYOUT_NEWLINE_AFTER
| Constructor Detail |
public ImageItem(java.lang.String label,
Image img,
int layout,
java.lang.String altText)
label - The label to drawimg - The immutable imagelayout - The layout to usealtText - The text to use in place of the image
IllegalArgumentException - if the image is mutable
IllegalArgumentException - if the layout value is not valid| Method Detail |
public java.lang.String getAltText()
public void setAltText(java.lang.String altText)
altText - the alternate textpublic Image getImage()
public void setImage(Image img)
img - The imagepublic int getLayout()
public void setLayout(int layout)
layout - The layout
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||