net.landspurg.util
Class ImageDisplayer
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.ImageItem
net.landspurg.util.ImageDisplayer
- All Implemented Interfaces:
- java.lang.Runnable
public class ImageDisplayer
- extends javax.microedition.lcdui.ImageItem
- implements java.lang.Runnable
This class is a subclass ofImageItem, and act exactly like an ImageItem
except that the image content is an URL and the content of this URL is
fetched other the internet.
Note that this fetch is done asyncrounously
| Fields inherited from class javax.microedition.lcdui.ImageItem |
LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT |
| Fields inherited from class javax.microedition.lcdui.Item |
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_EXPAND, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN |
|
Constructor Summary |
ImageDisplayer(java.lang.String name,
java.lang.String inUrl)
Create an ImageDisplayer |
ImageDisplayer(java.lang.String name,
java.lang.String inUrl,
java.lang.String documentBase)
Same as the other constructor, except that url can be relative. |
|
Method Summary |
void |
run()
internal function |
| Methods inherited from class javax.microedition.lcdui.ImageItem |
getAltText, getAppearanceMode, getImage, getLayout, setAltText, setImage, setLayout |
| Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLabel, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setPreferredSize |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageDisplayer
public ImageDisplayer(java.lang.String name,
java.lang.String inUrl)
- Create an ImageDisplayer
- Parameters:
name - Name of the field that will be displayed before the picture. Can be nullinUrl - The url of the image to fetch
ImageDisplayer
public ImageDisplayer(java.lang.String name,
java.lang.String inUrl,
java.lang.String documentBase)
- Same as the other constructor, except that url can be relative. If url is
relative, then documentBase will be used to define absoulte URL
- Parameters:
name - inUrl - documentBase -
run
public void run()
- internal function
- Specified by:
run in interface java.lang.Runnable