Java SDK for 2D
 All Classes Namespaces Functions Variables Pages
ApiDialog Class Reference

Static Public Member Functions

static int showMessage (String message, int buttons, boolean waitForFeedback, int maxTime) throws GeneralException
 Shows dialog window with a message. More...
 
static void flashMessage (String message, int maxTime) throws GeneralException
 Shows flash message. More...
 
static void closeDialogs (int maxTime) throws GeneralException
 Error report. More...
 

Member Function Documentation

static void closeDialogs ( int  maxTime) throws GeneralException
static

Error report.

Parameters
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Returns
the int
Exceptions
GeneralExceptionthe general exception Closes all dialogs.
Parameters
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().

static void flashMessage ( String  message,
int  maxTime 
) throws GeneralException
static

Shows flash message.

Parameters
messageText of the message to be shown.
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().

static int showMessage ( String  message,
int  buttons,
boolean  waitForFeedback,
int  maxTime 
) throws GeneralException
static

Shows dialog window with a message.

Parameters
messageText of the message to be shown.
buttonsType of used buttons.
waitForFeedbackDetermines whether Application returns reply before user click the button.
true - Application will return reply after user click the button.
false - Application will return reply immediately..
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Returns
int instance which contains information which button clicked.
101 - Cancel/No button.
201 - Ok/Yes button.

Notes:
ShowMessage shows dialog over full device screen with take message.
It is possible to use following button types:

1 - MbOk
2 - MbOkCancel
3 - MbYesNo

Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().