|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
Prompt
public class Prompt
This class represents a simple popup with text, optional image and optional progress bar.
| Constructor Summary | |
|---|---|
Prompt(Image icon,
String message,
MenuItem softOK,
MenuItem softBack)
Creates a new popup. |
|
Prompt(Image icon,
String message,
MenuItem softOK,
MenuItem softMiddle,
MenuItem softBack)
Creates a new popup. |
|
| Method Summary | |
|---|---|
void |
pop()
Removes this prompt from screen stack. |
void |
push()
Push this prompt on top of screen stack. |
void |
setActionHandler(ActionCallback callback)
Sets the action callback function for this Prompt. |
void |
setProgress(int current,
int max)
Sets current state of progress bar. |
| Methods inherited from class Object |
|---|
toString, equals, hashCode |
| Methods inherited from |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Prompt(Image icon,
String message,
MenuItem softOK,
MenuItem softBack)
icon - Icon to show, may be nullmessage - Message to showsoftOK - Action for OK soft key, may be nullsoftBack - Action for BACK soft key, may be null
public Prompt(Image icon,
String message,
MenuItem softOK,
MenuItem softMiddle,
MenuItem softBack)
icon - Icon to show, may be nullmessage - Message to showsoftOK - Action for OK soft key, may be nullsoftMiddle - Action for MIDDLE soft key, may be nullsoftBack - Action for BACK soft key, may be null| Method Detail |
|---|
public void setProgress(int current,
int max)
Sets current state of progress bar. When this method is called for the first time the progress bar is added to the prompt.
Indefinitive, continuously running progress bar
is created with setProgress(0,0) call.
current - Current progress between [0..max[max - Maximum progress, use zero for indefinite progresspublic void setActionHandler(ActionCallback callback)
Sets the action callback function for this Prompt.
The callback is used instead of generic
Script.actionPerformed(Shell, Component, int).
callback - Callback to use or null to
use the generic callbackpublic void push()
public void pop()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||