|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.emarson.lemonade.bluelemon.midp1.ImageItem
public class ImageItem
This class delivers the functionality of the MIDP1
ImageItem Java class to the
Bluelemon environment.
| Field Summary | |
|---|---|
static Number |
LAYOUT_CENTER
Image should be horizontally centered. |
static Number |
LAYOUT_DEFAULT
Use the default formatting of the "container" of the image. |
static Number |
LAYOUT_LEFT
Image should be close to left-edge of the drawing area. |
static Number |
LAYOUT_NEWLINE_AFTER
A new line should be started after the image is drawn. |
static Number |
LAYOUT_NEWLINE_BEFORE
A new line should be started before the image is drawn. |
static Number |
LAYOUT_RIGHT
Image should be close to right-edge of the drawing area. |
| Constructor Summary | |
|---|---|
ImageItem()
Constructs a new, empty ImageItem object. |
|
| Method Summary | |
|---|---|
Number |
getLayout()
Gets the layout directives used for placing the image. |
void |
initialize(String title,
Image image)
Initializes an ImageItem object with the given label and image. |
void |
setLayout(Number layout)
Sets the layout directives. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Number LAYOUT_CENTER
MIDP1 ImageItem.LAYOUT_CENTERpublic static Number LAYOUT_DEFAULT
MIDP1 ImageItem.LAYOUT_DEFAULTpublic static Number LAYOUT_LEFT
MIDP1 ImageItem.LAYOUT_LEFTpublic static Number LAYOUT_NEWLINE_AFTER
MIDP1 ImageItem.LAYOUT_NEWLINE_AFTERpublic static Number LAYOUT_NEWLINE_BEFORE
MIDP1 ImageItem.LAYOUT_NEWLINE_BEFOREpublic static Number LAYOUT_RIGHT
MIDP1 ImageItem.LAYOUT_RIGHT| Constructor Detail |
|---|
public ImageItem()
<blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/ImageItem"
toVariable="imageItem"/>
| Method Detail |
|---|
public Number getLayout()
MIDP1 ImageItem
<blue:call object="imageItem" method="getLayout"
toVariable="layout"/>
public void initialize(String title,
Image image)
title - the label stringimage - the image
<blue:call object="form" method="initialize">
<blue:argument type="String" value="label"/>
<blue:argument type="variable" name="image"/>
</blue:call>
public void setLayout(Number layout)
layout - a combination of layout directive valuesMIDP1 ImageItem
<blue:call manager="UtilsManager" method="AND"
toVariable="layout">
<blue:argument type="short" value="ImageItem.LAYOUT_CENTER"/>
<blue:argument type="short" value="ImageItem.LAYOUT_NEWLINE_BEFORE"/>
</blue:call>
<blue:call object="imageItem" method="setLayout">
<blue:argument type="variable" name="layout"/>
</blue:call>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||