com.emarson.lemonade.bluelemon.midp1
Class ImageItem

java.lang.Object
  extended by com.emarson.lemonade.bluelemon.midp1.ImageItem

public class ImageItem
extends Object

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

LAYOUT_CENTER

public static Number LAYOUT_CENTER
Image should be horizontally centered.

See Also:
MIDP1 ImageItem.LAYOUT_CENTER

LAYOUT_DEFAULT

public static Number LAYOUT_DEFAULT
Use the default formatting of the "container" of the image.

See Also:
MIDP1 ImageItem.LAYOUT_DEFAULT

LAYOUT_LEFT

public static Number LAYOUT_LEFT
Image should be close to left-edge of the drawing area.

See Also:
MIDP1 ImageItem.LAYOUT_LEFT

LAYOUT_NEWLINE_AFTER

public static Number LAYOUT_NEWLINE_AFTER
A new line should be started after the image is drawn.

See Also:
MIDP1 ImageItem.LAYOUT_NEWLINE_AFTER

LAYOUT_NEWLINE_BEFORE

public static Number LAYOUT_NEWLINE_BEFORE
A new line should be started before the image is drawn.

See Also:
MIDP1 ImageItem.LAYOUT_NEWLINE_BEFORE

LAYOUT_RIGHT

public static Number LAYOUT_RIGHT
Image should be close to right-edge of the drawing area.

See Also:
MIDP1 ImageItem.LAYOUT_RIGHT
Constructor Detail

ImageItem

public ImageItem()
Constructs a new, empty ImageItem object.

Usage examples:
   <blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/ImageItem"
                     toVariable="imageItem"/>
 
Method Detail

getLayout

public Number getLayout()
Gets the layout directives used for placing the image.

Returns:
a combination of layout directive values
See Also:
MIDP1 ImageItem
Usage examples:
   <blue:call object="imageItem" method="getLayout"
               toVariable="layout"/>
 

initialize

public void initialize(String title,
                       Image image)
Initializes an ImageItem object with the given label and image.

Parameters:
title - the label string
image - the image
Usage examples:
   <blue:call object="form" method="initialize">
     <blue:argument type="String" value="label"/>
     <blue:argument type="variable" name="image"/>
   </blue:call>
 

setLayout

public void setLayout(Number layout)
Sets the layout directives.

Parameters:
layout - a combination of layout directive values
See Also:
MIDP1 ImageItem
Usage examples:
   <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>
 


Copyright © 2007 E-MARSON. All Rights Reserved.