|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmobilecore.ui.core.Component
com.jmobilecore.ui.core.ImageComponent
com.jmobilecore.ui.core.ListImage
public class ListImage
Provides an image for display as part of List
component. ListImage
is focusable.
Field Summary | |
---|---|
protected java.lang.Object |
actionCommand
This field indicates the command has been issued by a particular list item. |
protected int |
shortcut
A key stoke that ia associated with a list item. |
protected java.lang.String |
text
The textual description of the image. |
Fields inherited from class com.jmobilecore.ui.core.ImageComponent |
---|
image |
Fields inherited from class com.jmobilecore.ui.core.Component |
---|
alignment, background, CENTER, focusable, focusedBackground, focusedForeground, font, foreground, height, isCompletelyVisible, isFocused, isVisible, LEFT, parentScreen, RIGHT, screenY, valid, width |
Constructor Summary | |
---|---|
ListImage(javax.microedition.lcdui.Image image)
Create a list image |
|
ListImage(javax.microedition.lcdui.Image image,
int shortcut)
Create a list image with an associated keyboard shortcut. |
|
ListImage(javax.microedition.lcdui.Image image,
int shortcut,
java.lang.Object action)
Create a list image with an associated keyboard shortcut and custom action. |
Method Summary | |
---|---|
void |
destructor()
Default destructor. |
java.lang.Object |
getAction()
Get the object representing the ListImage 's action
This method is required by ListComponent interface |
int |
getShortcut()
Get the key code shortcut for this ListImage
This method is required by ListComponent interface |
java.lang.String |
getText()
Get textual representation of the ListImage component
This method is required by ListComponent interface |
void |
setAction(java.lang.Object action)
Sets the object as ListLabel 's action
This method is required by ListComponent interface |
void |
setShortcut(int shortcut)
Sets the key code shortcut for this ListImage
This method is required by ListComponent interface |
void |
setText(java.lang.String text)
Sets the key code shortcut for this ListImage component
This method is required by ListComponent interface |
Methods inherited from class com.jmobilecore.ui.core.ImageComponent |
---|
paint, setHeight |
Methods inherited from class com.jmobilecore.ui.core.Component |
---|
getBackground, getFont, getForeground, getHeight, getWidth, invalidate, isFocusOwner, keyPressed, keyReleased, keyRepeated, paintBackground, pointerDragged, pointerPressed, pointerReleased, prepareForeground, releaseFocus, requestFocus, setFont |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jmobilecore.ui.core.ListComponent |
---|
getFont, setFont |
Field Detail |
---|
protected java.lang.Object actionCommand
actionCommand
is the image of the ListImage
,
unless it has been explicitly set to a different value.
getAction()
,
setAction(java.lang.Object)
protected int shortcut
PlatformCanvas.KEY_UNDEFINED
value
getShortcut()
,
setShortcut(int)
protected java.lang.String text
getText()
,
setText(java.lang.String)
Constructor Detail |
---|
public ListImage(javax.microedition.lcdui.Image image)
image
- the label for this list image.public ListImage(javax.microedition.lcdui.Image image, int shortcut)
image
- the label for this list image.shortcut
- key code associated witha list image.public ListImage(javax.microedition.lcdui.Image image, int shortcut, java.lang.Object action)
image
- the label for this list image.shortcut
- key code associated witha list image.action
- custom action for the ListImage
Method Detail |
---|
public void destructor()
destructor
in class ImageComponent
public java.lang.Object getAction()
ListImage
's action
This method is required by ListComponent
interface
getAction
in interface ListComponent
ListLabel
public int getShortcut()
ListImage
This method is required by ListComponent
interface
getShortcut
in interface ListComponent
public java.lang.String getText()
ListImage
component
This method is required by ListComponent
interface
getText
in interface ListComponent
public void setAction(java.lang.Object action)
ListLabel
's action
This method is required by ListComponent
interface
setAction
in interface ListComponent
action
- the object - new action valuepublic void setShortcut(int shortcut)
ListImage
This method is required by ListComponent
interface
setShortcut
in interface ListComponent
shortcut
- the keycode - new shortcut valuepublic void setText(java.lang.String text)
ListImage
component
This method is required by ListComponent
interface
setText
in interface ListComponent
text
- the new textual representation of the component
|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |