| java.lang.Object javax.microedition.lcdui.Displayable javax.microedition.lcdui.Screen javax.microedition.lcdui.Alert com.sun.midp.lcdui.SystemAlert
SystemAlert | public SystemAlert(DisplayEventHandler displayEventHandler, String title, String text, Image image, AlertType type)(Code) | | Construct an SystemAlert .
Parameters: displayEventHandler - The display event handler for error display Parameters: title - The title of the Alert Parameters: text - The text of the Alert Parameters: image - An Image to display on the Alert Parameters: type - The Alert type |
commandAction | public void commandAction(Command c, Displayable s)(Code) | | Respond to a command issued on this alert.
Parameters: c - command activated by the user Parameters: s - the Displayable the command was on. |
dismiss | public synchronized void dismiss()(Code) | | Dismiss the alert
|
run | public synchronized void run()(Code) | | Displays this alert. Since alert displaying may be blocking, it is
not allowed in the event dispatching thread. Nothing is done when
the method is called from the dispatching thread, to produce a
system alert from ituse runInNewThread(). Nothing is done if the
alert is being displayed currently.
|
runInNewThread | public synchronized void runInNewThread()(Code) | | Launches a new thread and displays this alert from it. Use this method
to avoid blocking a thread that produces the alert. Makes nothing if
the alert is being displayed currently.
|
setCommandListener | public void setCommandListener(CommandListener cl)(Code) | | Assigns explicit command listener to this alert. If an non-null
explcit listener its commandAction() method is called to process
a command, otherwise default dismiss() action is used.
Parameters: cl - expilict command listener, null to remove any explicitlistener |
waitForUser | public synchronized void waitForUser()(Code) | | Waits for the user to acknowledge the alert.
|
|
|