|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiImageComponent
A basic graphical image component. Wraps a MIDP Image in such a way that it can be used as a YogiComponent. Additionally allows YogiImageComponents to be loaded over an HTTP connection as well as from the local resources in the jar.
| Field Summary | |
static int |
PROPERTY_IMAGE
Constant for the image property |
| Constructor Summary | |
YogiImageComponent()
Default constructor simply sets the image name to be null (thus forcing the UIDelegate to render nothing). |
|
YogiImageComponent(Image theImage)
Create a new YogiImageComponent with the given Image. |
|
YogiImageComponent(java.lang.String theImageName)
Create a new YogiImageComponent with the Image identified by the given String. |
|
| Method Summary | |
YogiComponent |
getCellRendererComponent(AbstractTable table,
java.lang.Object value,
boolean isSelected,
boolean cellHasFocus)
Provided to implement the RendererFactory interface. |
Image |
getImage()
Get the Image currently associated with the YogiImageComponent. |
java.lang.String |
getImageName()
Get the name of the Image currently associated with the YogiImageComponent. |
void |
setImage(Image theImage)
Set the current Image directly for this YogiImageComponent. |
void |
setImage(java.lang.String name)
Set the name identifying the YogiImageComponent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_IMAGE
| Constructor Detail |
public YogiImageComponent()
public YogiImageComponent(Image theImage)
theImage - the image.public YogiImageComponent(java.lang.String theImageName)
theImageName - the name of the image to create.| Method Detail |
public Image getImage()
public java.lang.String getImageName()
public void setImage(java.lang.String name)
name - the Image's name, as passable to lcdui.Image.createImage(name).public void setImage(Image theImage)
setImage(String name)
should be used there instead.theImage - the Image to set as this component's current.
public YogiComponent getCellRendererComponent(AbstractTable table,
java.lang.Object value,
boolean isSelected,
boolean cellHasFocus)
RendererFactory interface.
Returns a YogiImageComponent customised to the arguments passed from the
AbstractTable subclass.getCellRendererComponent in interface RendererFactorytable - The table for which the check box is rendering.value - The object to be custom rendererd.isSelected - The selected state of the object to be custom rendererd.cellHasFocus - The focus state of the object to be custom rendererd.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||