public interface DMXDialog
Represents a popup dialog window that can be displayed on request. Some platforms may not necessarily support dialogs.
Dialogs can be made modal or non-modal. Modal dialogs will typically block caller thread while dialog is visible, but this is implementation dependent.
Modifier and Type | Field and Description |
---|---|
static int |
DLG_OPTION_CANCEL
Value for
Cancel option. |
static int |
DLG_OPTION_CLOSED
Indicates that dialog was closed on close button.
|
static int |
DLG_OPTION_NO
Value for
No option. |
static int |
DLG_OPTION_OK
Value for
OK option. |
static int |
DLG_OPTION_YES
Value for
Yes option. |
static int |
DLG_TYPE_ERROR
Error dialog (with error icon).
|
static int |
DLG_TYPE_INFO
Information dialog (with information icon).
|
static int |
DLG_TYPE_PLAIN
Plain dialog (no icon).
|
static int |
DLG_TYPE_QUESTION
Question dialog (with question icon).
|
static int |
DLG_TYPE_WARNING
Warning dialog (with warning icon).
|
static int |
OPIONS_OK_CANCEL
Dialog will display OK and Cancel buttons.
|
static int |
OPTIONS_OK
Dialog will display only OK button.
|
static int |
OPTIONS_YES_NO
Dialog will display Yes and No buttons.
|
static int |
OPTIONS_YES_NO_CANCEL
Dialog will display Yes, No and Cancel buttons.
|
Modifier and Type | Method and Description |
---|---|
void |
closeDialog()
Close this dialog.
|
DMXDialogView |
getDialogView()
Returns instance of
DMXDialogView displayed by this dialog. |
int |
showDialog()
Show this dialog.
|
static final int DLG_OPTION_OK
OK
option.static final int DLG_OPTION_CANCEL
Cancel
option.static final int DLG_OPTION_YES
Yes
option.static final int DLG_OPTION_NO
No
option.static final int DLG_OPTION_CLOSED
static final int OPTIONS_OK
static final int OPIONS_OK_CANCEL
static final int OPTIONS_YES_NO
static final int OPTIONS_YES_NO_CANCEL
static final int DLG_TYPE_PLAIN
static final int DLG_TYPE_INFO
static final int DLG_TYPE_ERROR
static final int DLG_TYPE_QUESTION
static final int DLG_TYPE_WARNING
int showDialog()
Show this dialog. Calling this method might block calling thread until dialog is closed. This is implementation dependent.
This method can optionally return an integer value that indicates some result (for example, selected option, input value etc.).
void closeDialog()
DMXDialogView getDialogView()
DMXDialogView
displayed by this dialog.Copyright © 2012-2014 Vektor Software. All Rights Reserved.