|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.microedition.lcdui.Displayable
|
+--javax.microedition.lcdui.Screen
|
+--javax.microedition.lcdui.Alert
An alert class that shows a screen for a period of time
| Field Summary | |
static int |
FOREVER
Timeout forever |
| Fields inherited from class javax.microedition.lcdui.Screen |
height, offset |
| Fields inherited from class javax.microedition.lcdui.Displayable |
display |
| Constructor Summary | |
Alert(java.lang.String title)
Create a new alert with a title |
|
Alert(java.lang.String title,
java.lang.String text,
Image image,
AlertType type)
Create a new alert with a title, test, image and of a type |
|
| Method Summary | |
void |
addCommand(Command cmd)
Add a command. |
int |
getDefaultTimeout()
Get the default timeout |
Image |
getImage()
Get the image |
java.lang.String |
getString()
Get the string |
int |
getTimeout()
Get the timeout |
AlertType |
getType()
Get the type |
void |
setCommandListener(CommandListener l)
Set the command listener |
void |
setImage(Image image)
Set the image |
void |
setString(java.lang.String text)
Set the string |
void |
setTimeout(int timeout)
Set the timeout |
void |
setType(AlertType type)
Set the alert type |
| Methods inherited from class javax.microedition.lcdui.Screen |
getTicker, getTitle, scrollDown, scrollUp, setTicker, setTitle |
| Methods inherited from class javax.microedition.lcdui.Displayable |
isShown, removeCommand |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int FOREVER
| Constructor Detail |
public Alert(java.lang.String title)
title - The title
public Alert(java.lang.String title,
java.lang.String text,
Image image,
AlertType type)
title - The titletext - The textimage - The imagetype - The type| Method Detail |
public void addCommand(Command cmd)
addCommand in class Displayablecmd - The commandpublic int getDefaultTimeout()
public Image getImage()
public java.lang.String getString()
public int getTimeout()
public AlertType getType()
public void setCommandListener(CommandListener l)
setCommandListener in class Displayablel - The listenerpublic void setImage(Image image)
image - The image
IllegalArgumentException - if the image is mutablepublic void setString(java.lang.String text)
text - The textpublic void setTimeout(int timeout)
timeout - The timeout
IllegalArgumentException - if the timeout is not positive or FOREVERpublic void setType(AlertType type)
type - The type
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||