public class ModalDialog extends AbstractDialog
The dialog can be used directly or the class is used as base class in order to override the methods AbstractDialog.onOK()
,
AbstractDialog.onCancel()
etc. which are called if a user presses the corresponding button.
Modifier and Type | Field and Description |
---|---|
static int |
ID_OK_APPLY_CANCEL |
static int |
ID_OK_APPLY_CANCEL_HELP |
static int |
ID_OK_CANCEL |
static int |
ID_OK_CANCEL_HELP |
static int |
ID_YES_NO |
static int |
ID_YES_NO_HELP |
Constructor and Description |
---|
ModalDialog(Window parent,
String title,
int buttonMask,
Object[] otherButtons,
String helpID) |
ModalDialog(Window parent,
String title,
int buttonMask,
String helpID) |
ModalDialog(Window parent,
String title,
Object content,
int buttonMask,
Object[] otherButtons,
String helpID) |
ModalDialog(Window parent,
String title,
Object content,
int buttonMask,
String helpID) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method is called, when the user clicks the "cancel" button or the "close" button of
the top bar of the dialog window.
|
center, collectButtons, getButton, getButtonID, getButtonMask, getButtonPanel, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, hide, onApply, onCancel, onClose, onHelp, onNo, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, show, showErrorDialog, showInformationDialog, showWarningDialog, verifyUserInput
public static final int ID_OK_CANCEL
public static final int ID_OK_CANCEL_HELP
public static final int ID_OK_APPLY_CANCEL
public static final int ID_OK_APPLY_CANCEL_HELP
public static final int ID_YES_NO
public static final int ID_YES_NO_HELP
public ModalDialog(Window parent, String title, Object content, int buttonMask, String helpID)
public ModalDialog(Window parent, String title, Object content, int buttonMask, Object[] otherButtons, String helpID)
public void close()
AbstractDialog.ID_CANCEL
and calls AbstractDialog.onCancel()
.close
in class AbstractDialog
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.