public class ModelessDialog extends AbstractDialog
A helper class used to implement standard modeless dialogs.
The dialog can be used directly (which doesn't make much sense) or the class is used as base class in
order to override the methods AbstractDialog.onApply()
, AbstractDialog.onClose()
etc. which are called if a user
presses the corresponding button.
Modifier and Type | Field and Description |
---|---|
static int |
ID_APPLY_CLOSE |
static int |
ID_APPLY_CLOSE_HELP |
Constructor and Description |
---|
ModelessDialog(Window parent,
String title,
int buttonMask,
Object[] otherButtons,
String helpID) |
ModelessDialog(Window parent,
String title,
int buttonMask,
String helpID) |
ModelessDialog(Window parent,
String title,
Object content,
int buttonMask,
Object[] otherButtons,
String helpID) |
ModelessDialog(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 "close" button of the bottom button row
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_APPLY_CLOSE
public static final int ID_APPLY_CLOSE_HELP
public ModelessDialog(Window parent, String title, Object content, int buttonMask, String helpID)
public ModelessDialog(Window parent, String title, Object content, int buttonMask, Object[] otherButtons, String helpID)
public void close()
AbstractDialog.ID_CLOSE
and calls AbstractDialog.onClose()
.close
in class AbstractDialog
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.