javax.microedition.lcdui
Class Alert
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.Alert
public class Alert
- extends Screen
- Author:
- Andre Nijholt
Fields inherited from class javax.microedition.lcdui.Displayable |
cmdListener, commands, height, KEY_BACK, KEY_ENTER, KEY_LEFT, KEY_RIGHT, shown, ticker, title, width |
Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, callCommandListener, clearPaintRequest, getHeight, getPaintRequest, getTicker, getTitle, getWidth, isShown, removeCommand, repaint, setCommandListener, setTicker, setTicker, setTitle, sizeChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOREVER
public static final int FOREVER
- See Also:
- Constant Field Values
ALERT_TYPE_INFO
public static final int ALERT_TYPE_INFO
- See Also:
- Constant Field Values
ALERT_TYPE_WARNING
public static final int ALERT_TYPE_WARNING
- See Also:
- Constant Field Values
ALERT_TYPE_ERROR
public static final int ALERT_TYPE_ERROR
- See Also:
- Constant Field Values
ALERT_TYPE_ALARM
public static final int ALERT_TYPE_ALARM
- See Also:
- Constant Field Values
ALERT_TYPE_CONFIRMATION
public static final int ALERT_TYPE_CONFIRMATION
- See Also:
- Constant Field Values
STR_CONFIRM
public static final String STR_CONFIRM
- See Also:
- Constant Field Values
STR_DENY
public static final String STR_DENY
- See Also:
- Constant Field Values
IMG_INFO
public static final Image IMG_INFO
IMG_WARNING
public static final Image IMG_WARNING
IMG_ERROR
public static final Image IMG_ERROR
IMG_ALARM
public static final Image IMG_ALARM
IMG_CONFIRM
public static final Image IMG_CONFIRM
Alert
public Alert(String title)
Alert
public Alert(String title,
String alertText,
Image alertImage,
int alertType)
setType
public void setType(int alertType)
setString
public void setString(String alertText)
setTimeout
public void setTimeout(int time)
getTimeout
public int getTimeout()
getConfirmation
public boolean getConfirmation()
setIndicator
public void setIndicator(Gauge indicator)
getIndicator
public Gauge getIndicator()
keyPressed
protected void keyPressed(int keyCode)
- Overrides:
keyPressed
in class Screen
showNotify
protected void showNotify()
- Overrides:
showNotify
in class Screen
paint
public void paint(Graphics g)
- Specified by:
paint
in class Screen